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!