1 Reply Latest reply on May 13, 2005 4:08 AM by Emmanuel Bernard

    Associative Table with additional attributes in ManyToMany

    manica Newbie

      In a bidirectional ManyToMany, I have an associative table that needs additional attributes. Is the best way to accomplish this to create an entity for the associative table and then create two one-to-many relationships? I can't see any mention of this scenario in the EJB3 spec or the JBoss docs. I see that Hibernate has a composite element that accomplishes the same thing, but I don't see any annotations for this in EJB3.

      Thank you,
      Darin