heuer / mappa

Mappa -- Topic Maps engine
5 stars 0 forks source link

Immutable associations? #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Think about the possibility to make the roles of an association immutable.
That means an API break and could mean that reification of roles and iids
on roles may not be allowed anymore. Reification of roles and iids on roles
suck anyway, but it breaks compatibility to TMDM.

Impacts:
- assoc.create_role(type, player) would go away
- role.player = new_player / role.type = new_type *may* go away (maybe just
the role.type = new_type)
- role.add_iid / role.remove_iid would go away
- role.reifier is not supported anymore

IIRC the ZTM supports just immutable associations; figure out how immutable
they are. :)

Original issue reported on code.google.com by lars.he...@gmail.com on 20 May 2009 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by lars.he...@gmail.com on 25 Jun 2009 at 1:00