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,
* @hibernate.one-to-one name="x" class="X" column="X_ID"
public X getX()
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.