Book a Demo

Author Topic: XSD : nillable not generated for association  (Read 5515 times)

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
XSD : nillable not generated for association
« on: December 02, 2010, 11:25:39 pm »
Just filed a bug report:

(Build 861)

Define an XSDcomplexType class, give it an attribute and an association to a second XSDcomplexType class. Give both the attribute and the target role of the association a tagged value "nillable" with value "true".

The nillable attribute will be generated for the attribute, but not for the association.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: XSD : nillable not generated for association
« Reply #1 on: December 08, 2010, 07:49:05 pm »
Answer from Sparx:

Quote
Please set the tag "nillable" on the source role ( rather than on the
target role ) of the association and the XSD Generator will generate the
"nillable" attribute for the association correctly. This is a known
issue in EA wherein EA takes the information from the source role rather
than on the target role. Implementing a fix will take some time as we
need to cater for backward compatibility too. Till then, please add the
tagged-value to the source role as a work-around.