6 messages in org.apache.jackrabbit.usersUsing Collections - OCM
FromSent OnAttachments
KaizerOct 24, 2007 4:55 am 
Christophe LombartOct 25, 2007 11:50 pm 
KaizerOct 26, 2007 12:38 am 
Christophe LombartOct 26, 2007 1:02 am 
KaizerOct 26, 2007 2:13 am 
Christophe LombartOct 26, 2007 5:16 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Using Collections - OCMActions...
From:Kaizer (Kaiz@mastek.com)
Date:Oct 24, 2007 4:55:13 am
List:org.apache.jackrabbit.users

Hi,

I have a class A which has a collection of objects of type B. I have made the corresponding definitions in the mapping xml. However, If i create a class C which extends B and save objects of type C in the list and then try to retrieve them, I always get an instance of B as the ObjectConverterImpl always creates a new instance of the "elementClassName" defined in the mapping (which would be B in this case). How can i achieve the storage and retrieval in this scenario?Would I require a custom CollectionConverter?

Thanks.