-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problem with merge files??
PostPosted: Mon Dec 22, 2003 7:39 am 
Newbie

Joined: Wed Dec 17, 2003 10:05 am
Posts: 4
Location: Kaarst - Germany
Hi,

i have problems with the "mergefile" option in XDoclet ( Version 1.2 final ) - maybe it's bug.

I would like to generate an additional mapping which comes
out of my mergedir. The filename is hibernate-properties-UserRole_Record.xml

This is the additional mapping:

<set name="menuItemsPermissions" table="user_access_link">
<key column="fk_role_id"/>
<composite-element class="com.gemida.server.records.menu.MenuItemsPermissions">
<many-to-one name="menuItem" column="fk_item_id"/>
<many-to-one name="menuPermission" column="fk_perm_id"/>
</composite-element>
</set>

The original mapping file where the additonal mapping should be added is UserRole_Record.hbm.xml

Here is my hibernatedoclet task:

<hibernatedoclet destdir="c:/temp/" excludedtags="@version,@author,@todo,@todob,@todoe" force="true" verbose="false">
<fileset dir="${src.dir}">
<include name="com/gemida/server/records/**/*.java"/>
</fileset>
<hibernate version="2.0" mergedir="${hibernate-merge.dir}"/>
<jbossservice destdir="c:/temp" jndiname="java:/gpHibernateFactory" servicename="HibernateForDBGP" dialect="net.sf.hibernate.dialect.MySQLDialect" datasource="java:/dbgpDS" userTransactionName="Transaction" transactionManagerStrategy="net.sf.hibernate.transaction.JBossTransactionManagerLookup" transactionStrategy="net.sf.hibernate.transaction.JTATransactionFactory"/>
</hibernatedoclet>


The hibernate-merge.dir is set correctly - I've checked this out.

Maybe somebody has a solution???
Many thanks
Tom


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 22, 2003 8:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Please note that the mergefile must be placed in a subdirectory of your mergedir, according to the package of the class you want to merge to. For Example if your class is de.test.BlaBla, your mergefile must be placed in mergedir/de/test/


Top
 Profile  
 
 Post subject: Problem with merge files
PostPosted: Mon Dec 22, 2003 8:40 am 
Newbie

Joined: Wed Dec 17, 2003 10:05 am
Posts: 4
Location: Kaarst - Germany
Hi gloeglm,

that's it - thank you very much - happy x-mas

Tom


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.