2 Replies Latest reply on Apr 22, 2005 4:58 AM by vincent_os

    Did

    vincent_os

      Hello,
      I recently updated my JBoss appserver with jboss-EJB-3.0 Preview 5 jars/libs. Since then I encountered the following problem:

      I have a entity bean called "Group" when I try to deploy this simple bean (it contains two persistant String attributes and an id field). I get an error when the EJB3.jar is deployed

      ERROR unexpected token GROUP ....

      Now if I change may bean class name to say Groupz.java it deploys fine!

      is this intended behavior?

        • 1. Re: Did
          bill.burke

          the default able name is the unqualified class name. So, do the following and you 'll be fine:

          @Entity(name="MyGroup")
          public class Group {}
          


          Group is a keyword in SQL as well as EJBQL 3.0

          • 2. Re: Did
            vincent_os

            Thanks Bill,
            Yes that will solve the problem. Still, as a design issue is it right that the nameing of a Domain Object is exposed to persistance layer syntactic constraints?

            Thanks again,
            Vincent O'Sullivan.