Parent Model toJson

31 views
Skip to first unread message

Partha

unread,
Dec 1, 2014, 11:09:05 AM12/1/14
to activejd...@googlegroups.com
ActiveJDBC toJson only generates json of children no data for Parent model, how can we get Parent data as well?

Order.find("status=?","Pending").include(User.class, OrderItem.class).toJson(true);

Igor Polevoy

unread,
Dec 1, 2014, 11:01:00 PM12/1/14
to activejd...@googlegroups.com
Partha, this looks like oversight in implementation. 
However, other priorities might prevent us to implement it soon. 
Currently  this is not a high priority for us, and you might want to look at using a combination of  http://javalite.github.io/activejdbc/org/javalite/activejdbc/Model.html#toMap-- and Jackson to generate Json. 

Thanks
Reply all
Reply to author
Forward
0 new messages