Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字段是对象list时查询出来的是List<NutMap>? #1593

Open
zhangweihust opened this issue Mar 15, 2022 · 1 comment
Open

字段是对象list时查询出来的是List<NutMap>? #1593

zhangweihust opened this issue Mar 15, 2022 · 1 comment

Comments

@zhangweihust
Copy link

@table("text_tble")
@pk(value = { "key"})
public class MyBean{
@column
public String key;

@Column
@ColDefine(type=ColType.MYSQL_JSON)
     public List<StructA> my_list; //

}

直接从db中查询得到的my_list是NutMap的ArrayList
MyBeandhs1 = dao.fetch(MyBean.class, Cnd.where(。。。))

这是正常的吗? 我期望能直接得到StructA的ArrayLis啊,有没有解决方法?

@wendal
Copy link
Member

wendal commented Mar 16, 2022

试试 数组形式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants