0 Replies Latest reply on Jun 12, 2006 10:41 AM by joergleansjboss

    realizing n-ary associations with cmp

    joergleansjboss

      Hello!

      CMP supports binary associations. But what do you do if you have to model for example 3nary relationships?

      Does EJB-CMP also support this or do I have to implement it myself.

      I think of introducing a new RelationshipBean, lets say ABCRelationBean, that holds the ids of the other three classes ABean, BBean, CBean that I want to have associations with each other.

      Then I create a association 1:n ABean to ABCRelationBean, 1:m BBean to ABCRelationBean and 1:k CBean to ABCRelationBean. With this relations I can now implement relations from A to B,C ...

      Any other and better idea?

      Thank you very much in advance.


      Jörg