Greetings,

I am using the M2 SDO release. Assume I have registered a schema that includes 
the following snippet:

...
<xs:element name="item" maxOccurs="unbounded">
 <xs:complexType>
  <xs:sequence>
   <xs:element name="title" type="xs:string"/>
   <xs:element name="note" type="xs:string" minOccurs="0"/>
   <xs:element name="quantity" type="xs:nonNegativeInteger" minoccurs="0" 
default="0" />
   <xs:element name="price" type="xs:decimal"/>
  </xs:sequence>
 </xs:complexType>
</xs:element>
...

It appears the presence of a default attribute on the "quantity" element makes 
the SDO runtime treat quantity as if the element also had the attribute, 
nillable="true". Is this a bug? If so, I'll be happy to register a JIRA issue. 
Let me know.

- Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to