What if I use @IdClass like this (removing the @ManyToOne from the PK class):
@Entity
| @IdClass(OnePK.class)
| public class One {
| private int a;
| private Two two;
|
| @Id
| public A getA() { return a; }
| public setA(A) { this.a = a; }
|
| @Id
| @ManyToOne
| public Two getTwo() { return two; }
| public setTwo(Two two) { this.two = two; }
| }
It doesn't work either. Is there any other way I can map a collection to a
composite PK field?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920486#3920486
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920486
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user