db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-576) Create new tests for getting a pmf using jdoconfig.xml
Date Sat, 01 Mar 2008 07:23:51 GMT

     [ https://issues.apache.org/jira/browse/JDO-576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Craig Russell updated JDO-576:
------------------------------

    Attachment: jdo-576.patch

Please review this patch.

With this patch applied, the config.Persistence test succeeds for application identity but
fails for datastore identity:

    [java] 1) testGetPMFfromEMFNamed(org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence)javax.jdo.JDODataStoreException:
[JPOX-052208] Insert of object "org.apache.jdo.tck.pc.mylib.PCPoint@39f7bc" using statement
"INSERT INTO datastoreidentity0.PCPOINT (PCPOINT_ID,Y,X,ID) VALUES (?,?,?,?)" failed : 'PCPOINT_ID'
is not a column in table or VTI 'DATASTOREIDENTITY0.PCPOINT'.
    [java] 	at org.jpox.jdo.JPOXJDOHelper.getJDOExceptionForJPOXException(JPOXJDOHelper.java:289)
    [java] 	at org.jpox.jdo.AbstractPersistenceManager.jdoMakePersistent(AbstractPersistenceManager.java:665)
    [java] 	at org.jpox.jdo.AbstractPersistenceManager.makePersistent(AbstractPersistenceManager.java:685)
    [java] 	at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.makePersistent(Persistence.java:108)
    [java] 	at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.runTest(Persistence.java:90)
    [java] 	at org.apache.jdo.tck.api.persistencemanagerfactory.config.Persistence.testGetPMFfromEMFNamed(Persistence.java:67)
    [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [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:259)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
    [java] 	at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
    [java] NestedThrowablesStackTrace:
    [java] ERROR 42X14: 'PCPOINT_ID' is not a column in table or VTI 'DATASTOREIDENTITY0.PCPOINT'.

According to the package.orm, the identity column is named ID, not PCPOINT_ID.

When JPOX uses persistence.xml to find the configuration, does it read package.jdo and package.orm?
The configuration info is in package.orm.



> Create new tests for getting a pmf using jdoconfig.xml
> ------------------------------------------------------
>
>                 Key: JDO-576
>                 URL: https://issues.apache.org/jira/browse/JDO-576
>             Project: JDO
>          Issue Type: Test
>          Components: tck2, tck2-legacy
>            Reporter: Michelle Caisse
>            Assignee: Michelle Caisse
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: jdo-576.patch
>
>
> New tests are needed to test getting a persistence manager factory with JDOHelper.getPersistenceManagerFactory()
and JDOHelper.getPersistenceManagerFactory(String name);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message