xdoclet - many-to-one ignores lazy=false

Dora Potluri <[email protected]> Tue, 26 May 2009 14:34:37 -0500
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============6415026683828029008==
Content-Type: multipart/alternative; boundary=0015175cdd82653bf8046ad5d203

--0015175cdd82653bf8046ad5d203
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I am using xdoclet 1.2.3 and hibernate 3.0.  I am using many-to-one
annotation like the following

/**
     * @hibernate.many-to-one cascade="none" column="other_table_pk"
insert="false" update="false" lazy=false fetch="join"
     */

I wanted the other relationship fetched so i set the lazy=false.
Regardless of what options i use, lazy=false attribute is ignored.   The
resulting hbm files does not have that.

I have seen discussion in the previous version of xdoclet, but has anyone
have an idea on how to fix this in Hibernate 3.0 with xdoclet 1.2.3?

btw: hibernate version is set to 3.0 in build.xml to ensure 3.0
compatibility.

Any help is greatly appreciated.

Thx!

--0015175cdd82653bf8046ad5d203
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br>I am using xdoclet 1.2.3 and hibernate 3.0.=A0 I am using many-to-one a=
nnotation like the following<br><br>/**<br>=A0=A0=A0 =A0* @hibernate.many-t=
o-one cascade=3D&quot;none&quot; column=3D&quot;other_table_pk&quot; insert=
=3D&quot;false&quot; update=3D&quot;false&quot; lazy=3Dfalse fetch=3D&quot;=
join&quot; <br>

=A0=A0=A0 =A0*/<br><br>I wanted the other relationship fetched so i set the=
 lazy=3Dfalse.=A0=A0 Regardless of what options i use, lazy=3Dfalse attribu=
te is ignored.=A0=A0 The resulting hbm files does not have that. <br><br>I =
have seen discussion in the previous version of xdoclet, but has anyone hav=
e an idea on how to fix this in Hibernate 3.0 with xdoclet 1.2.3? <br>

<br>btw: hibernate version is set to 3.0 in build.xml to ensure 3.0 compati=
bility.<br><br>Any help is greatly appreciated.<br><br>Thx!<br><br>

--0015175cdd82653bf8046ad5d203--


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

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
--===============6415026683828029008==
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

--===============6415026683828029008==--