Beginner |
|
Joined: Mon Feb 09, 2004 6:27 am Posts: 33
|
>> parent:
idgenerate : "foreign" refer to child
one to one to child: .... constrained='true' cascade="all"
>>child:
idgenerate: "uuid.hex"
one to one to parent : ....
>>test code:
List clist=sess.find(.....);
Child c=(Child)clist.get(0);
Parent=c.getParent();<<<<<<<<<<<------------- return null
----------------------------------------------------------------------------------
definetly the relationship is bidirective,
but it seems we couldn't get the parent from the child?????
anybody kown what is the problem and how to solve it?
thanks in advance!
|
|