You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Lemke, Wesley" <We...@LibertyMutual.com> on 2005/05/17 21:35:09 UTC

Using user defined Collections

We needed to extend the java.util.ArrayList class for a few of our
collections.  The objects persist fine, but I am getting class cast
exceptions when I try to retrieve the objects:

java.lang.ClassCastException:
org.apache.ojb.broker.util.collections.RemovalAwareCollection

Because we are subclassing from ArrayList, I didn't think that we would
need to use the collection-class attribute of the collection-descriptor
or implement ManageableCollection.  Is this true?

What do I have to do, to use a subclass of ArrayList for my collections?

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org