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.
As you said, use a association entity to map this scenario