using Castor 1.3
following binding works fine:
<complexTypeBinding name="/complexType:Base/Tag">
<member collection="collection"/>
</complexTypeBinding>
where Tag is an unbounded element to the complexType Base. The generated
class for Base gets the following property:
private java.util.Collection<java.lang.String> _tagList;
so the underlying property type is correctly set (as a Collection).
However, the set/get pass an object array (of String):
public void setTag(final java.lang.String[] vTagArray) {
Why? Want to be able to use a Collection as the parameter. Reason being is
I want a Hibernate collection mapping to map to the Tag property and pass a
set/collection. Do not want to use the Castor mapping facility (and map
premade Java POJOs).
Generating my Java classes from xml schemas with the Castor Ant task.
--
View this message in context:
http://www.nabble.com/Member-collection%3Dset-but-argument-is-object-array-tp25213139p25213139.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email