Hibernate version: 2.1.8
Hi,
I would like to know if it's possible to separate my tables in two java packages
I tryed to put 2 <middlegen> tags in my
middlegen-build.xml file :
Note the package=attribute
Code:
<middlegen appname="BOMC" ...>
<hibernate
destination="${dest.dir}"
package="${package1}"
...
/>
<table name="TABA" />
</middlegen>
<middlegen appname="BOMC" ... >
<hibernate
destination="${dest.dir}"
package="${package2}"
...
/>
<table name="TABB" />
...
</middlegen>
and it work pretty well BUT I don't get the relations created between TABA and TABB.
Well you'll probably ask me why I want to put those tables in differents package if they have relations, but it's because I have 80 tables with relations but don't want to get 80 files in the same package...
I tryed also to create 2 middlegen-build.xml but same pb.
I'm ok to do the work by hand (ie putting the relation between the 2 tables in the hbn.xml file) but when I'd like to add a table, the middlegen will erase my change, would'nt it ??
If somebody shared the same experience, I'd appreciate
Regards,
Philippe