Was reading about this, and am just was wondering how the following situation might work:
You have hbm files that you'll generate java files from with hbm2java, then you'll override equals() and hashCode() (and make any other additions to the generated java files), then you'll continue your build process...
Is it possible to automate the above in Ant?
You could of course put the hbm2java in Ant, but in between every build would you have to manually go into the generated java files, modify them accordingly, then continue the build (e.g. compilation, packaging, etc...)?
Perhaps I've misunderstood the use or intention of hbm2java...any clarification would be appreciated.
Thanks.
|