I see two ways to do this:

1. use a wrapper class and build a proper 1:n mapping
2. use the OJB Object2ByteArrFieldConversion to simply store the array 
into a VARCHAR, VARBINARY, BLOB or CLOB column.

both approaches have pros and cons...

cheers,
Thomas

Van D. wrote:
> Is there any way primitive array can be persisted?  Any suggestion will be helpful.
> Van
>  "Gelhar, Wallace J." wrote:How do we express array of primitive typed in 
>repository_user.xml, for
> example:
> 
> private double[] test = new double[13];
> 
> WG> In short, you cannot persist a primitive array. If you do not want
> it to be persistent, simply leave the attribute off of the repository.
> 
> Wally Gelhar
> 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to