[ http://jira.codehaus.org/browse/XDP-128?page=comments#action_49643 ]
Matthew Ma commented on XDP-128: -------------------------------- I'm not sure if there's much more relevant code to add... perhaps it is due to the fact that the two files are in different packages? Both files are located under the same directory: domains/src/java/...(respective package of file) Abstract Class: package xxx.xxx.common.package1 import java.io.Serializable; public abstract class XXX implements Serializable { /** * @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: package xxx.xxx.module1.package1 import java.io.Serializable; /* * @hibernate.class * table="YYY_TABLE" * dynamic-update="true" * dynamic-insert="true" */ public class YYY extends XXX implements Serializable { private Long id; /** * @return Returns the id. * @hibernate.id * generator-class="sequence" * column="ID" * @hibernate.generator-param * name="sequence" * value="SEQ_YYY_TABLE" */ public Long getId() { return id; } public void setId(Long id) { this.id = id; } } > 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