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

    ECLIPSE IDE - @JoinTable problem

    sierras

      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

        • 1. Re: ECLIPSE IDE - @JoinTable problem
          sierras

          Even though the documentations says another thing put...


          @JoinTable( table = @Table(name = "JOIN_ORG_ISU"),
          joinColumns = {@JoinColumn(name = "Organization_ID_GEN")},
          inverseJoinColumns = {@JoinColumn(name = "InformationSystemUser_ID_GEN")} )


          Maybe my documentation is not up todate.