Daniel Honig wrote:

The composite pattern describes objects that contain collections of objects?
Isn't this simply a 1..N relationship?......For example a book has 1..N pages?....
Yes, but what if those pages are of different subclasses? With Castor JDO, the 1..N has to be a homogenous collection of the same class type. Composite pattern allows you to have different classes in the the 1..N relationship.

Castor doesn't handle this.

-- Charles

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev



Reply via email to