Re: Design Pattern for referential integrity

2003-12-15 Thread Brian McCallister
for "referential integrity" is. An example. Suppose we have two classes which implement a N:M-Relation: class A { Collection bs; void addB(B b) { bs.add(b); } void removeB(B b) { bs.remove(b); } } // the clas

Design Pattern for referential integrity

2003-12-15 Thread Tino Schöllhorn
appropriate design pattern for "referential integrity" is. An example. Suppose we have two classes which implement a N:M-Relation: class A { Collection bs; void addB(B b) { bs.add(b); } void removeB(B b) { b