This content has been marked as final.
Show 2 replies
-
1. Re: Question about EntityQuery and multiple tables
lamikam Oct 19, 2012 1:10 PM (in response to lamikam)Come on, people! I need your wisdom.
-
2. Re: Question about EntityQuery and multiple tables
subaochen Oct 21, 2012 11:09 AM (in response to lamikam)hi,
Just to think about the reference of database table,that's the way that seam to deal with multiple tables.
As to your situation, you should define some kind of reference to ucrevnt in Ucbsvco, for example:
@Entity
public class Ucbsvco implements Servialiable{
...
private Set<Ucrevnt> evnts = new HashSet<Ucrevnt>(0);
...
And in Ucrevnt:
@Entity
public class Ucrevnt implements Serialiable{
...
private Ucbsvco ucbsvco;
...
}
Then in UcrevntList you can add such restriction like below:
"ucrevnt.ucbsvco.code = #{#UcrevntList.ucrevnt.ucbsvco.code}",
Hope to help you.