Re: hibernate lazy on many-to-one

"Frank Russo" <[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>
I got the merge working. 

I tried using lazy on the many-to-one, but it got ignored. It may be a
bug. Here is my xdoclet tag: 
@hibernate.many-to-one column="ENTITY_DM_ID" lazy="false" fetch="join"

This generated: 
<many-to-one 
	name="mechanism" 
	class="com.fxall.dealfeed.model.EntityDeliveryMechanism" 
	cascade="none" 
	outer-join="auto" 
	update="true" 
	insert="true" 
	column="ENTITY_DM_ID" 
	unique="false" 
	optimistic-lock="true" 
	not-found="exception" 
	embed-xml="true" 
/>

This doesn't contain a lazy attribute. It seems to be ignored...


Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: xdoclet-plugins-interest-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:xdoclet-plugins-interest-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On
Behalf Of Konstantin Priblouda
Sent: Tuesday, November 14, 2006 1:57 PM
To: xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [xdoclet-plugins-interest] hibernate lazy on many-to-one



--- Frank Russo <[email protected]> wrote:

> I checked the docs, and it seems that lazy on many-to-one is not an 
> option in xdoclet, but it is allowed according to hibernate docs.

Many to one definitely supports merge.  Tag documentation is somehow
outdated, because I still strugle to perform automatic upload of the
docs ( as there is neither groovy not confluience mojo fomr maven 2, and
groovy script also needs updating ) 

The best way for now it is to look into sources:

public interface HibernateManyToOneTag extends
com.thoughtworks.qdox.model.DocletTag, Unique, OuterJoin, Cascade,
NotNull,
    Insert, Update, Column, Clazz, Lazy, Access, OptimisticLock,
EntityName, Fetch, Formula, Index, Node, EmbedXml,
    ForeignKey, PropertyRef, NotFound, PropertiesName { }

clearly states that this tag supports lazy parameter.


>I
> tried looking into setting up a merge, but the  documentation is very

>poor on merging. It's not clear how the doc is  supposed to be 
>formatted.

hibernate mapping plugin does not define any merge points at the moment.
( do you need any? )

and basically you just pass parameter "mergedir" to plugin ( as url )
and it picks defined merge files from there.

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still
using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 
________________________________________________________________________
____________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.