I have a list from model below
public static List<PropertyMst> propertyMstList(){
return new ArrayList<>(PropertyMst.find.where().eq("isactive",true).findList());
}
When I run it from my controller I get the below output
application - Print Total Properties[models.PropertyMst@1, models.PropertyMst@3]
I'm able to convert this to JSON.
How do I go about accessing the models properties eg propertyMst.id = 1?
PropertyMst propertyMst = PropertyMst.propertyMstList().get(0);
然后您可以从propertyMst获取模型的所有属性
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.