1 Reply Latest reply on Apr 28, 2006 9:02 AM by Xavier Ferret

    ECLIPSE IDE - @JoinTable problem

    Xavier Ferret Newbie

      Writing an entity bean like this one

      @Entity
      public class .....{

      /* some properties */

      /* CHILDREN */

      private Set setInformationSystemUsers;

      @ManyToMany
      @JoinTable(name="nn")
      public Set getUsers()
      {
      return setInformationSystemUsers;
      }

      }

      I get an editor error like "The attribute name is undefined for the annotation type @JoinTable".

      And trying to get editor's help (ctrl-space bar) I get a message like "The annotation @JoinTable is disallowed for this location".

      Does anyone know if this is a bug or that I simply don't know how to write EJB3 entitites? And the sollution... please.

      thanks in advance