João Tiago Guerrinha <[EMAIL PROTECTED]> wrote on 14-05-2007 
21:57:16:

> 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
> 

AFAIK, you have to set the "type" attribute to the enum's fullu qualified 
classname. In your case, that would be:
  type="my.package.OrderEntryTypesEnumeration"

HTH.

Henk van Voorthuijsen

Reply via email to