Hi castor users, I am not sure if anyone has tried ths before..I am generating type safe enum classes using the SoureGenerator and find that the class is not being marshalled correctly. The class descriptor generated for the enum class seems different from the ones I generate for other classes in that it doesn't have any field descriptors in it ??. I am obviously doing something wrong here or I am thinking this might be a bug in castor's source generator.
In my schema, I am defining the enum type as a simple type :
<xs:simpleType name="accountstatusEnum">
<xs:annotation>
<xs:documentation>the status that an
account can have</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration
value="pendingcreditchecks"/>
<xs:enumeration value="denied"/>
<xs:enumeration value="open"/>
<xs:enumeration value="suspended"/>
<xs:enumeration
value="accountusagefinished"/>
<xs:enumeration value="closed"/>
</xs:restriction>
</xs:simpleType>
I have also attached the generated class and classdescriptor if that is
of any help..
Cheers
Ananth
AccountstatusEnumDescriptor.java
Description: AccountstatusEnumDescriptor.java
AccountstatusEnum.java
Description: AccountstatusEnum.java
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
