Hi,
I wish to use middlegen and the hibernate plugin for generating hbm files for a subset of tables.
I wish to achieve the following:-
- just analyze a subset of tables and generate the prefs file(which I will be modifying)
- just generate the hbm files for a subset of tables.
I don't want to use the table tag with generate="true/false" as I would need to specify each table for which I need to generate the hbm file in that case. Is there any alternative to just specify a subset of tables, for both analysis and hbm file generation????
My ant code is as follows:-
<taskdef
name="middlegen" classname="middlegen.MiddlegenTask"
classpathref="class.path"/>
<middlegen
appname="${refdata.packagename}"
prefsdir="${currentdir}" gui="false"
databaseurl="${database.url}" driver="${database.driver}" username="${database.userid}"
password="${database.password}" schema="${database.schema}">
<!-- Plugins -->
<hibernate
destination="${currentdir}" package="${refdata.packagename}"
javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"/>
</middlegen>
|