treespace wrote:
max wrote:
why not have hbm2java make you an abstract class with the value properites and then let you extend it to implement the biz-methods?
Quote:
Sounds like a great idea. This allows you to decide at runtime what type to instantiate provided it extends the abstract class specified in the ORM file. Many important applications for this in terms of customizing runtime behavior.
I don't think you are following me (or i ain't following you ;)
The hbm2java feature allows it to generate a AbstractXXX where you mention XXX in the mapping file.
Thus you only basically write "class XXX extends AbstractXXX { ... }" and when the hbm2java is rerun it will only redo AbstractXXX.
The mapping file will still map to the concrete class.