TopicMapBuilderIF has a makeAssociation(TopicIF at) method that creates a new
association with given type. However, this association has no roles. If the
user chooses not to add any roles, this association can be persisted. The TMDM
states that an association should have at least 1 role.
Options for fixing this:
- Change the builder to enforce role creation
- Change TopicmapStoreIF's to check for 0-role associations on commit and throw
an error for it
I'm in favor of option 1.
See attached java file.
Original issue reported on code.google.com by q.sieb...@morpheus.mssm.nl on 9 Sep 2011 at 9:58
Original issue reported on code.google.com by
q.sieb...@morpheus.mssm.nl
on 9 Sep 2011 at 9:58Attachments: