jdo - How to write JDOQL Query to get data from multiple objects(Relational Objects) -
i want write jdoql query(jdoql delarative or jdoql single string ). here classes
public class customer { string cid; string name; string email; string city; set<address> addresses=new hashset<address>(); } public class address { string aid; string city; string location; }
1-n relaitonship between customer , address objects.
here's database query
select c.name,c.email,a.city,a.location user.mascustomer c inner join user.masaddress on c.cid= a.cid;
how can represent above query in form of jdoql (delcarative or single string)?
Comments
Post a Comment