Tag @hibernate.one-to-one is not working

"Kamlesh Bhatt" <[email protected]> 17 Nov 2008 15:15:17 -0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
 This is a multipart mime message


--===============6458746426223016666==
Content-type: multipart/alternative;
	boundary="Next_1226934917---0-202.137.237.204-40749"

 This is a multipart mime message


--Next_1226934917---0-202.137.237.204-40749
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

 =A0=0AHi, =0A=0AI am working on hibernate with xdoclet tag but @hibernate.=
one-to-one is not working for me.=0A=0AI have 2 domain object and corrospon=
ding database tables. One domain object is related to other by unidirection=
al one-to one relation.In database corrosponding table contain foreign key =
which is id of other table. When I apply create operation, corrosponding fo=
reign key entry is not getting added. As soon as I change from @hibernate.o=
ne-to-one to @hibernate.many-to-one, everything works fine.=0A=0A=0AWe have=
 following two classes,=0A=0A=0AClass X=0A{=0A=0A....=0A....=0A=0A}=0A=0ACl=
ass Y=0A{=0AX x;=0A=0A/**=0A  * @hibernate.one-to-one name=3D"x" class=3D"X=
" column=3D"X_ID"=0A  */=0Apublic X getX()=0A{=0Areturn x;=0A}=0Apublic voi=
d setX(X x)=0A{=0Athis.x =3D x;=0A}=0A}=0A=0APlease let me know what am I m=
issing here. Any quick help on this would be highly appreciated.=0A=0AThank=
s,=0A
--Next_1226934917---0-202.137.237.204-40749
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0A&nbsp; <BR>=0AHi, <BR>=0A<BR>=0AI am working on hibernate with xdocle=
t tag but @hibernate.one-to-one is not working for me.<BR>=0A<BR>=0AI have =
2 domain object and corrosponding database tables. One domain object is rel=
ated to other by unidirectional one-to one relation.In database corrospondi=
ng table contain foreign key which is id of other table. When I apply creat=
e operation, corrosponding foreign key entry is not getting added. As soon =
as I change from @hibernate.one-to-one to @hibernate.many-to-one, everythin=
g works fine.<BR>=0A<BR>=0A<BR>=0AWe have following two classes,<BR>=0A<BR>=
=0A<BR>=0AClass X<BR>=0A{<BR>=0A<BR>=0A....<BR>=0A....<BR>=0A<BR>=0A}<BR>=
=0A<BR>=0AClass Y<BR>=0A{<BR>=0AX x;<BR>=0A<BR>=0A/**<BR>=0A&nbsp; * @hiber=
nate.one-to-one name=3D&quot;x&quot; class=3D&quot;X&quot; column=3D&quot;X=
_ID&quot;<BR>=0A&nbsp; */<BR>=0Apublic X getX()<BR>=0A{<BR>=0Areturn x;<BR>=
=0A}<BR>=0Apublic void setX(X x)<BR>=0A{<BR>=0Athis.x =3D x;<BR>=0A}<BR>=0A=
}<BR>=0A<BR>=0APlease let me know what am I missing here. Any quick help on=
 this would be highly appreciated.<BR>=0A<BR>=0AThanks,<BR>=0A=0A</P>=0A<br=
><br>=0A
--Next_1226934917---0-202.137.237.204-40749--



--===============6458746426223016666==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=/
--===============6458746426223016666==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

--===============6458746426223016666==--