From: xgas <xg...@ho...> - 2008-03-24 11:09:21
|
Isn't it helpful to have in middlegen ANT task the option to specify implements interfaces for each table separatly example: <middlegen appname="${program.name}-${module.name}" gui="false" databaseurl="${database.url}" driver="${database.driver}" username="${database.user_name}" password="${database.user_pwd}" schema="${database.user_name}" includeViews="false"> <table name="SOME_TABLE" implements="Interface" /> <table name="OTHER_TABLE" implements="Some other interface" /> <table name="THIRD_TABLE" /> <!-- no interface --> <hibernate destination="${dir.generator.mappings}" genXDocletTags="true" standardCascade="all-delete-orphan" batchSize="500" /> </middlegen> Right now we can only have same interfaces for all tables. I made some modifications and this works fine. If middlegen dev team thiks its reasonable then i can send my modifications in middlegen source also. Raino Kolk |
From: dchannon <dch...@bi...> - 2008-03-24 13:09:50
|
Sounds fine - send the source patches in and someone will check it out and commit the changes. Cheers David. -----Original Message----- From: mid...@li... [mailto:mid...@li...] On Behalf Of xgas Sent: Monday, 24 March 2008 9:09 PM To: mid...@li... Subject: [Middlegen-devel] Separate interfaces and extends for tables. Isn't it helpful to have in middlegen ANT task the option to specify implements interfaces for each table separatly example: <middlegen appname="${program.name}-${module.name}" gui="false" databaseurl="${database.url}" driver="${database.driver}" username="${database.user_name}" password="${database.user_pwd}" schema="${database.user_name}" includeViews="false"> <table name="SOME_TABLE" implements="Interface" /> <table name="OTHER_TABLE" implements="Some other interface" /> <table name="THIRD_TABLE" /> <!-- no interface --> <hibernate destination="${dir.generator.mappings}" genXDocletTags="true" standardCascade="all-delete-orphan" batchSize="500" /> </middlegen> Right now we can only have same interfaces for all tables. I made some modifications and this works fine. If middlegen dev team thiks its reasonable then i can send my modifications in middlegen source also. Raino Kolk ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ middlegen-devel mailing list mid...@li... https://lists.sourceforge.net/lists/listinfo/middlegen-devel |