--- Robert Bowen <[EMAIL PROTECTED]> wrote:
> Hmmm ... Well I could upgrade to XDoclet 2 I guess. > Is hibernate.composite-element an XDoclet 2 tag? As > opposed to hibernate.collection-composite-element? http://xdoclet.codehaus.org/HibernateTags Contains information about hibernate tags in XD2 plugin. As for upgrade - you should do this. Contrary to XD1 website XD2 is fully operational and is used in produktion since 2003. It got a lot of new features ( like line accurate error reporting and self-validating and formally defined tags ) > At any rate, could you expand a bit on how to do > what you suggested? I don't really understand what > "map composite element properties on element itself > instead on his property in entity" means. Are you > saying to put tags in the ModulePiece class? I > thought that you weren't supposed to do this for a > class that isn't a busines object, like Module and > Piece are. > > Anyway, if you could give me an example that would > be great! In entity class: -----------%<--------------- /** * @hibernate.list fetch="join" access="field" * @hibernate.key column="userName" * @hibernate.list-index column="displayOrder" base="1" * @hibernate.composite-element class="org.xdoclet.plugin.hibernate.pojo.CompositeMapping$Email" */ private List emailAddresses; ----------%<-------------------- In element class: -----------%<------------- public class Email { /** * @hibernate.property access="field" */ private String address; } -----------%<--------------- Produces: ---------%<------------------ <list access="field" name="emailAddresses" fetch="join"> <key column="userName"/> <list-index column="displayOrder" base="1"/> <composite-element class="org.xdoclet.plugin.hibernate.pojo.CompositeMapping$Email"> <property name="address" access="field"/> </composite-element> </list> ---------%<----------------- You may choose to chekout sources of hibernate plugin - - there are testcases which demonstrate most of possible mappings regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest