nutzam / nutz

Nutz -- Web Framework(Mvc/Ioc/Aop/Dao/Json) for ALL Java developer
https://nutzam.com
Apache License 2.0
2.53k stars 942 forks source link

【建议】新增:Record转T类型方法 #1574

Closed lmm1990 closed 3 years ago

lmm1990 commented 3 years ago

临时解决办法: 自己写了个util

使用方法: Entity entity = NutzEntityUtil.getEntity(UserInfo.class); Record result = userService.get(id,"id,nickName"); UserInfo userInfo = entity.getObject(result);

附件: NutzEntityUtil.java.txt

threefish commented 3 years ago

Lang.map2Object(record, UserInfo.class); 就可以了

lmm1990 commented 3 years ago

好的,多谢