nutz icon indicating copy to clipboard operation
nutz copied to clipboard

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

Open zhangweihust opened this issue 2 years ago • 1 comments

@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啊,有没有解决方法?

zhangweihust avatar Mar 15 '22 18:03 zhangweihust

试试 数组形式

wendal avatar Mar 16 '22 02:03 wendal