[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-929?page=co...
]
Norman Franke commented on HBX-929:
-----------------------------------
Since this paradigm is so common, I'd rather it be a simple checkbox in the GUI. I
can't find any documentation (and I looked!) on how to do that using the existing
implementation and couldn't. I like the philosophy of making the common easy, thus my
request. Creating non-generated subclasses to contain add methods and other infrastructure
would make maintenance easier. Not all classes need this, so I can't think of a way to
auto generate this. I can add my base object copy method that produces a non-proxy,
non-hibernate subclass for serialization via Tapestry or similar using your idea.
Enable base class generation
----------------------------
Key: HBX-929
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-929
Project: Hibernate Tools
Issue Type: New Feature
Components: datagen, hbm2java
Affects Versions: 3.2beta9
Environment: Hibernate 3.2.3
Reporter: Norman Franke
Fix For: 3.2beta10
Using the reverse engineering features, I'd like to be able to have it generate base
classes (e.g. TableNameBase) and yet tell Hibernate to use the parent class, e.g.
TableName. I read that one can add a meta attribute "generated-class" to do this
but (a) there is no way to make this happen via the Eclipse Plugin and (b) even if one
modifies the template to add it, it doesn't seem to pick it up (it does end up in the
resulting hbm.xml files.) The Run... GUI can't seem to generate Java files from the
hbm.xml files either, so one must reverse engineer anyway, which is another annoyance.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira