Re: xdoclet - many-to-one ignores lazy=false

Dora Potluri <[email protected]> Tue, 26 May 2009 15:50:31 -0500
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============4506639083989981769==
Content-Type: multipart/alternative; boundary=0015175cdd56d72f9d046ad6e161

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

I also tried lazy="false", and it ignores that as well.

Here is what got generated in the hbm file

My mistake of posting it without quotes.  Even with Quotes, it ignores it.

Here is what got generated at the end

    <many-to-one
            name="myothertable"
            class="myothertable"
            cascade="none"
            outer-join="auto"
            update="false"
            insert="false"
            column="other_table_pk"
        />

As you can see lazy is ignored.

Any help is greatly appreciated.

Thx!


On Tue, May 26, 2009 at 2:34 PM, Dora Potluri <[email protected]> wrote:

>
> 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!
>
>

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

<br>I also tried lazy=3D&quot;false&quot;, and it ignores that as well.=A0 =
<br><br>Here is what got generated in the hbm file<br><br>My mistake of pos=
ting it without quotes.=A0 Even with Quotes, it ignores it. <br>
<br>
Here is what got generated at the end<br>
<br>
=A0=A0=A0 &lt;many-to-one<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 name=3D&quot;myothertable&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 class=3D&quot;myothertable&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 cascade=3D&quot;none&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 outer-join=3D&quot;auto&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 update=3D&quot;false&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 insert=3D&quot;false&quot;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 column=3D&quot;other_table_pk&quot;<br>
=A0=A0=A0=A0=A0=A0=A0 /&gt;<br>
<br>
As you can see lazy is ignored.<br><br>Any help is greatly appreciated.<br>=
<br>Thx!<br><br><br><div class=3D"gmail_quote">On Tue, May 26, 2009 at 2:34=
 PM, Dora Potluri <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I am using xd=
oclet 1.2.3 and hibernate 3.0.=A0 I am using many-to-one annotation like th=
e following<br>

<br>/**<br>=A0=A0=A0 =A0* @hibernate.many-to-one cascade=3D&quot;none&quot;=
 column=3D&quot;other_table_pk&quot; insert=3D&quot;false&quot; update=3D&q=
uot;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>
</blockquote></div><br>

--0015175cdd56d72f9d046ad6e161--


--===============4506639083989981769==
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 
--===============4506639083989981769==
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

--===============4506639083989981769==--