In SDO 1, the mapping of enumerations was not specified, so the EMF Enumeration pattern was used. In SDO 2, the mapping is defined - there are no Enumeration types, "enumerations" map to ordinary DataTypes. Maybe a future version of the SDO spec may add support for generating an Enumeration class but for now there's no way to do it.
Frank. Ron Gavlin <[EMAIL PROTECTED]> wrote on 06/30/2006 08:30:31 AM: > I have the following simpleType in my schema: > > <xsd:simpleType name="UpdateStatus"> > <xsd:restriction base="xsd:string"> > <xsd:enumeration value="success"/> > <xsd:enumeration value="duplicate"/> > <xsd:enumeration value="failure"/> > </xsd:restriction> > </xsd:simpleType> > > The EMF/SDO 1.0 code generator created an UpdateStatus "enumeration" > class for this simpleType. The Tuscany XSD2JavaGenerator treats it > as a simple string and doesn't generate a class. Is there a way to > annotate my schema so that the Tuscany generator will generate a > class similar to the EMF/SDO 1.0 class? > > - Ron > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
