Hi,
I am using Middlegen to generate hbm files from an existing database schema.
The Hibernate Plugin for Middlegen allows to specify the 'destination' and 'package' attribute (in Ant task).
I am wondering, if there is a simple way to tell the Hibernate Plugin to assign database tables to different Java packages?
However, I would need to maintain associations between objects in different packages (i.e. just splitting up the task in Ant won't work for me).
For example, tables prefixed with DEF should be generated in package 'def', tables prefixed with NLS should be generated in package 'nls' etc, but some DEF_xxx tables will have FK associations to some NLS_xxx tables.
Thanks for your help!
Regards,
Josef
|