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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Konstantin Priblouda
Sent: Tuesday, November 14, 2006 1:57 PM
To: xdoclet-plugins-interest@lists.sourceforge.net
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@lists.sourceforge.net
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
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to