[jboss-user] [EJB 3.0] - Problem with onetoone mapping!
Mr_Anonymous
do-not-reply at jboss.com
Fri Dec 1 11:13:22 EST 2006
I have some problems with onetoone mapping:
May someone tell me whats wrong?
Here is the short version:
Tables and References:
Test <------> Test2
PK/FK id <--> PK id
e.g. public class Test{
....
@ID
private String id; //PK and FK
@OneToOne
protected Test2 test2;
....
public class Test2{
...
@ID
private String id; //PK, so that id of Test2 is the same as id of Test1
.....
This way I'm getting problems by creating an entitymanager and working with Test I think....
THX for help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990481#3990481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990481
More information about the jboss-user
mailing list