Hi all,
i'm coming from the php world where i used to work with the 'doctrine' orm framework. This framework had some scripts to generate php classes from your mapping files, but with a a Base/Subclass architecture.
Let's say you have a 'User' entity and you generate the php code for the first time, the script creates a BaseUser class, and a User class which simply extends BaseUser, whithout adding anything.
If the User file already exists, it won't touch it anymore, with the benefit that you can add your own code to the POJO that will not be overwritten when the code generation script runs. After looking at the docs, the only way one could implement something like this is with custom hbmtemplates for hibernate ant task.
Does anyone know if this is possible somehow?
|