Hi, I'm tring to do the following:
@Entity
| public class One {
| private OnePK id;
|
| @Id
| public OnePK getId() { return id; }
| public setId(OnePK id) { this.id = id; }
| [EMAIL PROTECTED]
| public class OnePK {
| private int a;
| private Two two;
|
| public A getA() { return a; }
| public setA(A) { this.a = a; }
|
| @ManyToOne
| public Two getTwo() { return two; }
| public setTwo(Two two) { this.two = two; }
| [EMAIL PROTECTED]
| public class Two {
| private int id;
| private Set<One> ones;
|
| @Id
| public int getId() { return id; }
| public setId(int id) { this.id = id; }
|
| @OneToMany(mappedBy="two")
| public Set<One> getOnes() { return ones; }
| public setOnes(Set<One> ones) { this.ones = ones; }
| }
But the mappedBy is not working. Am I doing something wrong? Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920457#3920457
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920457
-------------------------------------------------------
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