I have a class called History that has 1 or more Event objects. In the xsd, it
is defined as:
<xsd:complexType name="History">
<xsd:sequence>
<xsd:element name="event" type="Event" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
When I instantiate a new History instance, I would expect that the event array
would contain one new Event instance because minOccurs="1". If I had set
minOccurs="2", I would expect it to instantiate two new Event instances for
every new History object, etc... Instead, the array is empty.
Is this a limitation in the design or is there a way to configure Castor to do
this?
Thanks,
Robert
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev