Title: using specific array types with lazy loading
will Castor in the future support any sort of ordering of collection elements (with arraylist, array, etc), whether it be with lazy loading or not?
 
Thanks,
Brett
-----Original Message-----
From: Thomas Yip [mailto:[EMAIL PROTECTED]]
Sent: Friday, 9 November 2001 10:03 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] using specific array types with lazy loading

 

You can only use java.util.Collection for lazy loading.

 

 

 

Thomas

 

-----Original Message-----

>From: Brett Porter [mailto:[EMAIL PROTECTED]]

>Sent: Thursday, November 08, 2001 2:35 PM

>To: [EMAIL PROTECTED]

>Subject: [castor-dev] using specific array types with lazy loading

>

>Hi,

>I get this exception:

>java.lang.ClassCastException: org.exolab.castor.persist.RelationCollection

>when lazy loading:

><field name="featuredProducts" type="au.com.f2.shopping.product.featured.FeaturedProduct" collection="arraylist" lazy="true">

>and

>Collection featuredProducts = new ArrayList();

>and I try to:

>ArrayList list = (ArrayList) featuredProducts;

>If I turn off lazy loading, it works.

>Shouldn't lazy loading mean you get ArrayListRelationCollection that extends RelationCollection and implements ArrayList (or something similar)?

>This is with Castor 0.9.3

>Thanks,

>Brett

>~*~*~*~*~*~*~

>Brett Porter - Web Developer

>f2 Network ~ everything essential

>Ph: +61 2 8596 4437

>Email: [EMAIL PROTECTED]

>

Reply via email to