[ http://jira.codehaus.org/browse/XDP-51?page=all ] Anatol Pomozov closed XDP-51: -----------------------------
> Support for prefix in Componet > ------------------------------ > > Key: XDP-51 > URL: http://jira.codehaus.org/browse/XDP-51 > Project: XDoclet 2 Plugins > Type: New Feature > Environment: Win32, Hibernate 3.0, xdoclet-2.0.2.jar , > xdoclet-plugin-hibernate-1.0.jar > Reporter: Yuval Carmel > Assignee: Anatol Pomozov > > > There is the "prefix" attribute in hibernate.component presented in XDoclet > 1, used to differentiate one component from another in an object that used it > (Address Book has two Address components, Home Address and Work Address). > class Address{ > /** > * @hibernate.property > */ > public String address; > } > /** > * @hibernate.class table="address_book" > */ > class AddressBook{ > /** > * @hibernate.component prefix="home" > */ > public Address getHomeAddress() { > return this.homeAddress; > } > /** > * @hibernate.component prefix="work" > */ > public Address getWorkAddress() { > return this.workAddress; > } > } > generates: > <component name="homeAddress"> > <property name="address" column="address"/> > <component/> > <component name="workAddress"> > <property name="address" column="address"/> > <component/> > should be: > <component name="homeAddress"> > <property name="address" column="homeaddress"/> > <component/> > <component name="workAddress"> > <property name="address" column="workaddress"/> > <component/> -- 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 Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest