[ http://jira.codehaus.org/browse/XDP-128?page=comments#action_49644 ]
Matthew Ma commented on XDP-128: -------------------------------- I have taken a brief look at the test cases contained in the source. Most of the extending or implementing subclasses tend to be located in the same package and directory as the superclass. As in the above case, the only major difference compared to the test cases is that the superclass is abstract, and that the package/directory of the classes are different. So I am guessing it is most probably due to the package/directory difference. Perhaps some test cases are needed for other features where two related files are separated across package/directory, i.e. component classes, etc? Anyways, we have decided not to replace XDoclet1 with XDoclet2 in our project (at least for now), as it is simply too much work to go through all domain objects and verify correctness for each one, and XDoclet1 serves our purposes just fine. Best of luck with XDoclet2! > Hibernate property in abstract class not Generated > -------------------------------------------------- > > Key: XDP-128 > URL: http://jira.codehaus.org/browse/XDP-128 > Project: XDoclet 2 Plugins > Type: Bug > Components: hibernate > Versions: 1.0.2 > Reporter: Matthew Ma > > > Hi, > I have defined a hibernate.property in an abstract class, to be inherited by > all implementing classes. > When generating the hibernate mapping for an inheriting concrete class, the > property is not generated. > Abstract Class: > public abstract class XXX { > /** > * @return Returns the name. > * @hibernate.property column="NAME" > * length="60" not-null="true" > */ > public String getName() { > return name; > } > public void setName(String name) { > this.name = name; > } > } > Concrete Class that extends the abstract class: > public class YYY extends XXX { > } > The name property is not generated in the resulting YYY.hbm.xml file. > The same code works fine using xdoclet-1.2.3. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest