Synonym for "Many-to-Many" relationship (relational databases)
Posted
by Byron
on Stack Overflow
See other posts from Stack Overflow
or by Byron
Published on 2010-04-28T06:11:20Z
Indexed on
2010/04/28
6:13 UTC
Read the original article
Hit count: 419
What's a synonym for a "many-to-many" relationship? I've finished writing an object-relational mapper but I'm still stumped as to what to name the function that adds that relation.
addParent() and addChild() seemed quite logical for the many-to-one/one-to-many and addSuperclass() for one-to-one inheritance, but addManyToMany() would sound quite unintuitive to an object-oriented programmer. addSibling() or addCousin() doesn't really make sense either.
Any suggestions? And before you dismiss this as a non-programming question, please remember that consistent naming schemes and encapsulation are pretty integral to programming :)
© Stack Overflow or respective owner