Hi there,
We have finalised on a Hibernate implementation. Do post your thoughts on the same. We don't want to depend on any IDE for Hibernate code generation as this has to part of the build script deliverable.
1) Since we are interacting with a legacy database we plan to use the
Middlegen task for generating all hbm mapping files
2) Use ant task hbm2java for generating all POJO artifacts.
We plan to interject "named queries" in hbm xml files so these queries can be overwritten in case the build is generated again and again. What is the popular approach for handling this.
In case of java files we can create custom classes and extend the generated POJO's and preserve our custom code from being overwritten.
Let me know what is the popular approach for storing and harnessing named queries.
Regards,
|