[ http://jira.codehaus.org/browse/XDP-89?page=all ]
Anatol Pomozov reassigned XDP-89: --------------------------------- Assign To: Anatol Pomozov > propertie getters specified in interface lead to double inserts of properties > in hbm.xml > ---------------------------------------------------------------------------------------- > > Key: XDP-89 > URL: http://jira.codehaus.org/browse/XDP-89 > Project: XDoclet 2 Plugins > Type: Bug > Components: hibernate > Versions: 1.0.1 > Reporter: marc schipperheyn > Assignee: Anatol Pomozov > Priority: Minor > > > When you specify a date value in an interface > /** > * @hibernate.property > * @return > */ > public abstract Date getDateSent(); > and implement the interface through an abstract Class to a concrete class > (implementing the date property only in the abstract class), I got this > hbm.xml through xdoclet 2. > <hibernate-mapping> > <class table="Messages" name="Message"> > <id unsaved-value="null" name="messageID" type="java.lang.Long" > column="MessageID"> > <generator class="native"/> > </id> > <discriminator type="string" column="Subclass" length="15"/> > <property name="dateSent"/> > <many-to-one column="FromSub" not-null="true" name="from"/> > <property name="message" length="4000" column="Message"/> > <many-to-one column="ToSub" not-null="true" name="to"/> > <subclass name="LocalMail" discriminator-value="LOCALMAIL"> > <property name="read" column="isRead"/> > <property name="title" length="255"/> > <property name="notifyWhenRead"/> > <property name="dateSent"/> > <many-to-one column="FromSub" not-null="true" name="from"/> > <property name="message" length="4000" column="Message"/> > <many-to-one column="ToSub" not-null="true" name="to"/> > </subclass> > </class> > </hibernate-mapping> > note the double dateSent property. This also occurs for other property types > Kind regards, > Marc -- 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 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest