0 Replies Latest reply on Feb 25, 2005 4:46 PM by zorzella

    Using JDK 1.5 enums in CMP g/setter

    zorzella

      I tried changing a g/setter in my CMR EJB to be a Java 1.5 enumeration, like this:

      public abstract MyEnum getMyEnumVariable ();
      public abstract void setMyEnumVariable (MyEnum myEnumVariable);

      But when I deploy, the deployer does not like my EJB-QL syntax where I say:

      myObject.myEnumVariable = 1

      Is there anything special I need to do to have this working?

      BTW, even though I'm running JBoss 4.0.1, I'm still using EJB spec "2.0". Is that the problem?

      Thanks,

      Zorzella