| Author |
One2One Uni-directional Problem
|
S Subbu
Ranch Hand
Joined: Mar 20, 2012
Posts: 87
|
|
Hi , I am Using JPA Annotation .
My Problem is i associate One2One Uni - directional Relation. My Actual Problem is
In Table1
Insert Code
But When was insert Record , i got exception like assign value to id in com.entity.Table2 before calling save()
I dont want to assign id value , it will get From Table1 Id value . What i have to do for this.
Thanks
|
 |
Prabaharan Gopalan
Ranch Hand
Joined: Oct 16, 2009
Posts: 66
|
|
|
The id in Table2 is the primary key for table2. Unless you have a generation strategy specified for that Id, you'd have to manually set the id.
|
Googling doesn't make you a genius. But not Googling makes you dumber.
|
 |
 |
|
|
subject: One2One Uni-directional Problem
|
|
|