db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Watzek <mwa.t...@spree.de>
Subject Patch implementing inheritance proposal - 1 of 2
Date Wed, 24 Aug 2005 15:56:12 GMT
Hi,

please find the attched patch implementing the inheritance proposal. I 
had to break up the patch into two files:

- inheritance.patch-1of2
- inheritance.patch-2of2

You receive the second patch file in a separate mail.

Andy, Erik: JPOX only passes inheritance mapping 4. For this reason, it 
makes sense that you review the mappings before we check in the patch. 
Note, that all mappings use XML testdata "companyNoRelationships.xml".

These are the results for application identity:

- Inheritance mapping 1: SQL Exception: The statement was aborted 
because it would have caused a duplicate key value in a unique or 
primary key constraint or unique index identified by 'COMPS_PK' defined 
on 'COMPANIES'.

- Inheritance mapping 2: org.jpox.metadata.InvalidMetaDataException: 
Class org.apache.jdo.tck.pc.company.DentalInsurance has field 
org.apache.jdo.tck.pc.company.DentalInsurance.carrier declared in 
MetaData, but this field doesnt exist in the class!

- Inheritance mapping 3: org.jpox.metadata.InvalidMetaDataException: 
Class "org.apache.jdo.tck.pc.company.Employee" has been specified to use 
"subclass-table" inheritance strategy yet has at least one field that is 
a Collection/Map. This is not currently supported by JPOX.

- Inheritance mapping 4: OK.

These are the results for datastore identity:

- Inheritance mapping 1: SQL Exception: The statement was aborted 
because it would have caused a duplicate key value in a unique or 
primary key constraint or unique index identified by 
'SQL050824024418460' defined on 'PERSONS'.

- Inheritance mapping 2: org.jpox.metadata.InvalidMetaDataException: 
Datastore-identity strategy in class 
"org.apache.jdo.tck.pc.company.DentalInsurance" ("identity") is not the 
same as the Datastore-Identity strategy declared in the super class(es) 
("native").

- Inheritance mapping 3: org.jpox.metadata.InvalidMetaDataException: 
Class "org.apache.jdo.tck.pc.company.Employee" has been specified to use 
"subclass-table" inheritance strategy yet has at least one field that is 
a Collection/Map. This is not currently supported by JPOX.

- Inheritance mapping 4: OK.

Regards,
Michael
-- 
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------

Mime
View raw message