Quote:
do you have many to many detetction enabled in both ?
Yes, it is.
And as the hbmtemplate described before, the following hbm2java configuration give me a ManyToMany with mappedBy on both sides:
Code:
<target name="hbm2java" depends="" description="--> description">
<hibernatetool destdir="${bean.dir}/">
<jdbcconfiguration detectmanytomany="true" revengfile="${gen.dir}/hibernate.reveng.xml" configurationfile="${src.dir}\hibernate.cfg.xml" packagename="${bean.pac}" />
<hbm2java jdk5="true" ejb3="true"/>
</hibernatetool>
</target>
whereas this config works well:
-A console (Type core) targeted on ${src.dir}\hibernate.cfg.xml
-A hibernate Code Generation with same outputdir, packagename, reveng.xml
\_>A generic exporter with jdk5,ejb3, same file pattern and template name
The eclipse output and Ant output are exactly the same, except the 2 mappedBy and the joinColumn missing.
Do you have a good generation with ANT in this config:
-2 tables + 1 Join table
-jdbcconfiguration detectmanytomany=true
-hbm2java jdk5=true ejb3=true
I try with hsql and sqlserver2005.
Thanks by advance,
Slimane.