Hi, Even though it is an enum, you will still have to add a type attribute to the field mapping for 'OrderEntryType', as in ...
<field name="orderEntryType" type="OrderEntryTypesEnumeration"> <bind-xml name="OrderEntryType" /> </field> In addition, please note that the name attribute of your field mapping needs to match the name of the Java member, i.e. 'orderEntryType' and not 'OrderEntryType'. Regards Werner ________________________________________ Von: João Tiago Guerrinha [mailto:[EMAIL PROTECTED] Gesendet: Montag, 14. Mai 2007 21:25 An: [email protected] Cc: João Tiago Guerrinha Betreff: [castor-user] [XML] Error mapping enum fields Hello: I've the following field that is of the type "enum". private OrderEntryTypesEnumeration orderEntryType;; public enum OrderEntryTypesEnumeration { INSTALAR, ALTINTERFACE, ALTSECURIZACAO, ALTTIPOACESSO, ALTVLAN, ALTDEBITOQOS, DESLIGAR, CANCELAR } How can I map a XML file to an object of this type? I've got the following code in XML map file, but it doesn't work: <field name="OrderEntryType" > <bind-xml name="OrderEntryType" /> </field> I also tried with type="enum" but it doesn't work. Thank you Guerrinha --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

