db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@jpox.org>
Subject TestArrayCollections
Date Fri, 29 Jul 2005 07:32:41 GMT
An observation on the arrays test. The class has fields like

public BigDecimal [] ArrayOfBigDecimal12;
public BigDecimal [] ArrayOfBigDecimal13;

Declared in the JDO file as :-
<field name="ArrayOfBigDecimal12" >
    <array embedded-element="true">
    </array>
</field>
<field name="ArrayOfBigDecimal13" >
    <array embedded-element="false">
    </array>
</field>

and in the ORM as :-
<field name="ArrayOfBigDecimal12" column="ARRAY_OF_BIG_DECIMAL12" 
serialized="true"/>
<field name="ArrayOfBigDecimal13" table="ARRAY_OF_BIG_DECIMAL13"/>

ArrayOfBigDecimal12 is simply serialised into its own column - fine.
I'm puzzled by what is intended by the ArrayOfBigDecimal13. It specifies a 
table name to store the array elements in, yet there's no <join>, and the 
array elements are not embedded. Are you expecting the JDO impl to store the 
array elements in a join table ?

Can someone clarify ?


-- 
Andy

Mime
View raw message