What approaches are recommended for developing entities that need to keep
track of a collection of Serializable items? And if it's different, what
approaches are recommended for developing entities that keep track of a
collection of other entities?
The sort of usage I'm looking at is for ad hoc collections of objects,
rather than 1 to many relationships that can be implemented using finder
methods that correspond to an SQL query.
The first thing that occured to me was to use Java2 collections, but I'm
not sure if they would work well for persistent data in an EJB environment.
For one thing, the collection interfaces are not defined to be
Serializable, meaning they aren't appropriate to use as the type of a CMP
field or as a parameter on an entity remote interface.  I see that Sun
provides concrete collection implementation classes that are Serializable,
so they could be used directly, but that ties the remote interface to a
specific concrete class rather than a generic type like Set or List.

Erik Voldal
Email: [EMAIL PROTECTED]
Phone: 507-253-4788

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to