While playing around with betwixt (newest from SVN), I found some strange (I think) constraint. Consider the TestMultiMapping unit test with PartyBean and AddressBean, where the former has a sub object venue that is an AddressBean. Now the mapping file specifies
<element name="location" property="venue"/> which results in a sub-element location for the AddressBean instance despite the fact that the mapping for AddressBean specifies the "address" element. While I can see a reason why one would want to change the XML element for a sub object, I'd like to specify the simpler case where the element that is defined in the mapping of the AddressBean is used, e.g. <element property="venue"/> This way, the mapping for AddressBean is self-contained and can be used as-is by other mappings. However, I get a SAX exception stating that the name attribute is required (it obviously only works for collections, not for references). Is there any way that I can avoid the specification of the element name when stating a mapping for a sub object ? regards, Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
