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
|