03-01-06 12:45 PM
[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 th
e
spec?
> Quoting "Michael Watzek (JIRA)" <jira@apache.org>:
>
> problem:
> below).
> identity
> testPositive(org.apache.jdo.tck.query.sql.NewQuery)javax.jdo.JDOUserExcept
ion:
>
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1217)[
vbcol=seagreen]
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>[/vbcol]
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:1
112)
>
org.jpox.AbstractPersistenceManager. makePersistent(AbstractPersistenceManage
r.java:1167)[vbc
ol=seagreen]
>[/vbcol]
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1207)[
vbcol=seagreen]
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>[/vbcol]
org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201)
> org.apache.derby.impl.sql.compile.ResultColumnList.checkAutoincrement(Unkn
own
>
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unk
nown
> Source)
> Source)
>
com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:190)[vb
col=seagreen]
>[/vbcol]
org.jpox.state.StateManagerImpl.internalMakePersistent(StateManagerImpl.java:3310)
>
org.jpox.AbstractPersistenceManager. internalMakePersistent(AbstractPersisten
ceManager.java:1
112)
>
org.jpox.AbstractPersistenceManager. makePersistent(AbstractPersistenceManage
r.java:1167)[vbc
ol=seagreen]
>[/vbcol]
org.jpox.AbstractPersistenceManager. makePersistentAll(AbstractPersistenceMan
ager.java:1207)[
vbcol=seagreen]
> org.apache.jdo.tck.query.QueryTest.makePersistentAll(QueryTest.java:225)
>[/vbcol]
org.apache.jdo.tck.query.QueryTest.loadAndPersistCompanyModel(QueryTest.java:201)
> in
>
>
>
[ Post a follow-up to this message ]
|