0

我想编写一个 JDOQL 查询(JDOQL Delarative 或 JDOQL Single String )。这是我的课

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;
}

Customer 和 Address 对象之间的 1-N RelaitonShip。

这是我的数据库查询

选择 c.Name,c.Email,a.City,a.Location from user.MASCUSTOMER c inner join user.MASADDRESS a on c.Cid= a.Cid;

我如何以 JDOQL(Delcarative 或 Single String)的形式表示上述查询?

4

0 回答 0