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 "Hiller, Frank RD-AS2" <Fr...@heidelberg.com> on 2005/06/29 09:23:12 UTC

collection-descriptor for array?

Hi OJB community,
 
is it possible to use "collection-descriptor" in repository.xml for
arrays, too?
Using a collection works fine but I didn't get it for array to work :-(.
 
Thanks,
Frank
 
 

Re: collection-descriptor for array?

Posted by Thomas Dudziak <to...@gmail.com>.
On 6/29/05, Hiller, Frank RD-AS2 <Fr...@heidelberg.com> wrote:

> is it possible to use "collection-descriptor" in repository.xml for
> arrays, too?
> Using a collection works fine but I didn't get it for array to work :-(.

Yep, it works for arrays as well. Eg. have a look at the PersonWithArray test

http://cvs.apache.org/viewcvs.cgi/db-ojb/src/test/org/apache/ojb/broker/PersonWithArray.java?only_with_tag=OJB_1_0_RELEASE&view=markup
http://cvs.apache.org/viewcvs.cgi/db-ojb/src/test/org/apache/ojb/broker/MtoNTest.java?only_with_tag=OJB_1_0_RELEASE&view=markup
(method testStoreBidirectionalArray)

and the corresponding repository mapping 

http://cvs.apache.org/viewcvs.cgi/db-ojb/src/test/org/apache/ojb/repository_junit.xml?only_with_tag=OJB_1_0_RELEASE&view=markup

Tom

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