Hi,
I’ve got a class diagram with two types “A” and “B”, where A holds an ordered list of B. I’m trying to configure the many-to-many association in the class diagram, where the association is only navigable from A->B and the order of the B instances in the list is given by the order they are added to the list at runtime. This should result in an association table in the erd with the fields a_id, b_id, order_idx, and a hibernate mapping for the type “A” defining a list property “bs” where the list-index is the order_idx of the association table, like in:
<class name="A" table="a">
<id name="id" column="id" />
<list name="bs" table="a2b">
<key column="a_id" />
<list-index column="order_idx" base="1" />
<many-to-many class="B"
column="b_id" />
</list>
</class>
but I can’t get it working.
When I define the ORM->Collection Type->List, I get this error message:
null (A->B) The ordered relationship does not specify the ordered column.
Furthermore: If I do an “Instant reverse hibernate mapping files” (Tools->Code Engineering->Instant Reverse->Hibernate) and try to create the hibernate mapping files from the automatically generated new class diagram, I also get the error message:
null (A->B) The ordered relationship does not specify the ordered column.
How can I define such an association in the class diagram?
Thanks a lot for any tip,
best regards,
Georg