[ http://issues.apache.org/jira/browse/JDO-261?page=all ]

Andy Jefferson reassigned JDO-261:
----------------------------------

    Assign To: Michelle Caisse  (was: Andy Jefferson)

Well if you look at the message received
Add request failed : INSERT INTO datastoreidentity0.HASHSET_OF_OBJECT2 
(IDENTIFIER,COLLVAL,ADPT_PK_IDX) VALUES (?,?,?)
you have a field that has a serialised element. You have an ORM definition of
<field name="HashSetOfObject2" table="HASHSET_OF_OBJECT2">
    <join column="IDENTIFIER"/>
    <element column="COLLVAL"/>
</field>

So in the join table we have a FK back to the owner, a value column, and we 
need to impose a PK (since I have no spec that defines how to specify that no 
PK is required).
I don't see any primary-key specification, so how does JPOX know what is the PK 
of this join table ?

> TestHashSetCollections, TestSetCollections : schema incorrect
> -------------------------------------------------------------
>
>          Key: JDO-261
>          URL: http://issues.apache.org/jira/browse/JDO-261
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michelle Caisse

>
> HashSetCollections/SetCollections are mapped incorrectly. They should have a 
> primary-key specified in the metadata to tell the JDO implementation which 
> columns to use for PK. Without this the JDO implementation can do whatever it 
> likes wrt defining a PK. This includes adding its own adapter columns. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to