Apache JDO Project - Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > March 2006 > Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi
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
>
>
>





Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com