Joined: Sat Apr 24, 2004 6:25 pm Posts: 14 Location: Rochester, NY
|
I am using the Middlegen-Hibernate-R5 plugin to generate hibernate HBM and java classes.
I would like to use a sequence as the generator and each table have its own sequence. For example
Customer uses customer_seq
order uses order_seq
I see that it is possible to set this in the middlegen GUI. It is redundant and tedious to set this for all tables though. Is it possible to set defaults on the plugin in the ant task. For example
<hibernate destination="${hibernate-src.dir}" package="${base.package}.data" javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper" genXDocletTags="true" defaultGenerator="sequence" sequencePattern="{0}_seq"/>
Any thoughts?
Ben
|
|