0 Replies Latest reply on Jan 16, 2008 7:21 PM by ijb

    An array of enumerated types using annotations

    ijb

      Can anyone shed some light on how can one define an array of enumerated types? I need to map the following class:

      public class Proto {
       public enum TransportMethod {HTTP, HTTPS, TELNET, SSH};
      
      
       private Set<TransportMethod> methods = new HashSet<TransportMethod>(0);
      ...getters and setters....
      }