Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [jira] Updated: (JDO-308) Remove attribute strategy from elements datastore-identi  
erik@jpox.org


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register