Hi,

> -----Original Message-----
> From: cmarcourt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 9:05 AM
> To: [EMAIL PROTECTED]
> Subject: Proxy Collection
> 
> 
> Hi, 
> 
> I'm sure I read this in a tutorial of OJB but I can't find it anymore.
> Can I use :
> 
> <collection..... proxy="true"/> in my repository.xml
> 
> and my java class use Arrays ?

No, that's currently no possible. 
I think CollectionProxy could bextented without too much pain to support
Arrays too.
But it would need some investigation first.

cheers,
thomas

> example : 
> repository.xml :
> ...
> <collection-descriptor auto-delete="true" 
> auto-retrieve="true" auto-update="true"
>                       element-class-ref="com.hbk.bean.House" 
> name="ownedHouses" proxy="true">
>                       <inverse-foreignkey field-ref="ownerId"/>
>               </collection-descriptor>
> ...
> 
> java source :
> 
> public class Customer() {
> ...
> private House[] ownedHouses;
> ...
> }
> 
> If yes, I'm surely made a mistake in my repository or in my 
> java class, because as soon as I set proxy to true, I've got 
> a ClassCastException.
> 
> Christophe
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Reply via email to