Hello,
I use middlegen for a new project. At the beginning I
have run in some problems for which I will commit a
patch so other people can use this great tool without
the same problems...
The first fix in the patch covers a bug wich is present
if you have more than 50 tables in your db-schema. The
behavior is, maven-middlegen-plugin will generated max
50 hibernate mapping files even if you have more than
50 tables. The fault is a hard coded value of an
for-loop in the jelly code of the maven plugin.
With the patch the maximum loop value can be configured
easily per property. The default behauvior hasn't
changed, but could be overridden in the
project.properties (e.g. max=140 :-) ).
The second fix in the patch covers an miss spelled
property name for the hbm2java tool --> getXdocletTags
instead of genXDocletTags so the XDoclet Tags in the
generated java classes are present!
Best regards,
Tobias Joch
Patch with two bug fixes.