Hi,
I am working on hibernate with xdoclet tag but @hibernate.one-to-one is not
working for me.
I have 2 domain object and corrosponding database tables. One domain object is
related to other by unidirectional one-to one relation.In database
corrosponding table contain foreign key which is id of other table. When I
apply create operation, corrosponding foreign key entry is not getting added.
As soon as I change from @hibernate.one-to-one to @hibernate.many-to-one,
everything works fine.
We have following two classes,
Class X
{
....
....
}
Class Y
{
X x;
/**
* @hibernate.one-to-one name="x" class="X" column="X_ID"
*/
public X getX()
{
return x;
}
public void setX(X x)
{
this.x = x;
}
}
Please let me know what am I missing here. Any quick help on this would be
highly appreciated.
Thanks,
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user