| erik@jpox.org 2006-03-01, 7:45 am |
| [ReSEnDING lost in some wire...]
I'm working on the action item, and I have one question about it. JPOX will
have
to validate primary key columns, and one of the primary key fields is String.
The column for the primary key in the db has 16 chars length, but in the
metadata it defaults to 255 (JPOX). Spec says it should defaults to 256.
1-what should the impl do: take the schema from db as valid or the metadata?
2-The most common limit for CHAR in RDBMS is 255, why is it set to 256 in the
spec?
> Quoting "Michael Watzek (JIRA)" <jira@apache.org>:
>
> problem:
> below).
> identity
> testPositive(org.apache.jdo.tck.query.sql.NewQuery)javax.jdo.JDOUserException:
>
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1217)
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>
org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201)
>
(DATASTORE_IDENTITY,ID,FOUNDEDDATE,"NAME",ADDRID,CITY,COUNTRY,"STATE",STREET,ZIPCODE)
>
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3310)
>
org.jpox.AbstractPersistenceManager. internalMakePersistent(AbstractPersisten
ceManager.java:1112)
>
org.jpox.AbstractPersistenceManager. makePersistent(AbstractPersistenceManage
r.java:1167)
>
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1207)
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>
org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201)
> org.apache.derby.impl.sql.compile.ResultColumnList.checkAutoincrement(Unknown
>
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext. prepareInternalStatement(Unknown
> Source)
> Source)
>
com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:190)
>
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3310)
>
org.jpox.AbstractPersistenceManager. internalMakePersistent(AbstractPersisten
ceManager.java:1112)
>
org.jpox.AbstractPersistenceManager. makePersistent(AbstractPersistenceManage
r.java:1167)
>
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1207)
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>
org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201)
> in
>
>
>
|