Issue Details (XML | Word | Printable)

Key: JDO-7
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Michelle Caisse
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

New .jdo, .orm, and .sql for pc.company

Created: 05/Apr/05 08:14 AM   Updated: 23/Apr/06 01:48 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: JDO 2 beta

Time Tracking:
Not Specified

Resolution Date: 23/Apr/06 01:48 AM


 Description  « Hide
Metadata files (.jdo and .orm) and DDL to create the corresponding database schema are needed for the classes in org.apache.jdo.tck.pc.company. DDL should be added to test/sql/schema1.sql and test/sql/schema2.sql. Metadata goes in the test/jdo/... and test/orm/... trees.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michelle Caisse added a comment - 15/Apr/05 07:30 AM
Checked in files, but get error:
    [java] 1) test(org.apache.jdo.tck.transactions.SetNontransactionalRead)org.jpox.metadata.InvalidMetaDataException: Field "org.apache.jdo.tck.pc.company.Company.address" has been specified as embedded, yet is of type . JPOX doesnt support embedding of this type.
    [java] at org.jpox.metadata.EmbeddedMetaData.populate(EmbeddedMetaData.
java:125)
    [java] at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:603)
    [java] at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:782)
    [java] at org.jpox.metadata.MetaDataManager.initialiseMetaDataForClass(MetaDataManager.java:662)
    [java] at org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:362)
    [java] at org.jpox.AbstractPersistenceManager.hasMetaDataForPersistenceCapableClass(AbstractPersistenceManager.java:376)
    [java] at org.jpox.AbstractPersistenceManager.assertPersistenceCapable(AbstractPersistenceManager.java:407)
    [java] at org.jpox.AbstractPersistenceManager.internalMakePersistent(AbstractPersistenceManager.java:876)
    [java] at org.jpox.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:974)
    [java] at org.apache.jdo.tck.transactions.SetNontransactionalRead.runTestSetNontransactionalRead(SetNontransactionalRead.java:94)
    [java] at org.apache.jdo.tck.transactions.SetNontransactionalRead.test(SetNontransactionalRead.java:74)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:147)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:75)
    [java] at org.apache.jdo.tck.util.BatchTestRunner.run(BatchTestRunner.java:70)
    [java] at org.apache.jdo.tck.transactions.SetNontransactionalRead.main(SetNontransactionalRead.java:67)

Michelle Caisse added a comment - 22/Apr/05 01:44 AM
This fix plus the latest JPOX build resolve most metadata issues for the Company model. Many tests still give errors, but not due to metadata or schema problems.

I had to allow nulls in some columns (address fields and others) for some tests to run. I did not check all tests, so more such changes may be required.

Michael Bouschen added a comment - 23/Apr/06 01:44 AM
Reopened to set the Fix Version/s field to JDO 2 beta.