1 Reply Latest reply on May 22, 2006 10:19 AM by Urs Wagner

    EJB 3 Annotations problem

    Urs Wagner Novice

      I have added the directory ../default\jboss-ejb3\lib to the class path. I think simple add the jar files should be enough. The compiler cannot interpret the annotations.

      [echo] Compiling sources
      [javac] Compiling 2 source files to C:\Dokumente und Einstellungen\jboss\workspace\onlinestore\build\classes
      [javac] C:\Dokumente und Einstellungen\jboss\workspace\onlinestore\src\org\onlinestore\ejb\Customer.java:3: cannot find symbol
      [javac] symbol: class Entity
      [javac] @Entity
      [javac] ^
      [javac] C:\Dokumente und Einstellungen\jboss\workspace\onlinestore\src\org\onlinestore\ejb\Customer.java:12: cannot find symbol
      [javac] symbol : class Id
      [javac] location: class org.onlinestore.ejb.Customer
      [javac] @Id(generate = GeneratorType.AUTO)
      [javac] ^
      [javac] C:\Dokumente und Einstellungen\jboss\workspace\onlinestore\src\org\onlinestore\ejb\Customer.java:23: cannot find symbol
      [javac] symbol : class Column
      [javac] location: class org.onlinestore.ejb.Customer
      [javac] @Column(name = "firstname", length = 60, nullable = false)
      [javac] ^