Hi all
I am trying the JDO API with OJB and MySQL. When I make persistence whith a bean (Application here), the insertion is OK but the object don' t retreive the value of the primary key


[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
[org.apache.ojb.broker.ta.PersistenceBrokerFactoryDefaultImpl] INFO: Create PersistenceBroker instance pool, pool configuration was {whenExhaustedAction=0, maxIdle=-1, maxActive=100, maxWait=2000, numTestsPerEvictionRun=10, testWhileIdle=false, testOnReturn=false, timeBetweenEvictionRunsMillis=-1, minEvictableIdleIimeMillis=600000, testOnBorrow=false}
[DEFAULT] INFO: OJB Descriptor Repository: file:/D:/SourcesJava/persistance/dist/ojb/src/repository.xml
[DEFAULT] INFO: ...Finished parsing. Took 1452 msecs
[DEFAULT] INFO: OJB Descriptor Repository: file:/D:/SourcesJava/persistance/dist/ojb/src/repository.xml
[DEFAULT] INFO: ...Finished parsing. Took 180 msecs
[org.apache.ojb.broker.util.sequence.SequenceManagerFactory] INFO: Use sequence manager class: class org.apache.ojb.broker.util.sequence.SequenceManagerHiLoImpl
[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] INFO: Create connection pool for JdbcDescriptorKey 381060771
[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] INFO: Create new connection pool for org.apache.ojb.broker.metadata.JdbcConnectionDescriptor,
used descriptor: JdbcConnectionDescriptor
DBMS:MySQL
DRIVER: com.mysql.jdbc.Driver
PROTOCOL: jdbc
SUBPROTOCOL: mysql
DBALIAS: //127.0.0.1/persist
USERNAME:
PASSWORD:
EAGER RELEASE: false
pool configuration was: {whenExhaustedAction=0, maxIdle=-1, maxActive=21, maxWait=5000, numTestsPerEvictionRun=10, testWhileIdle=false, testOnReturn=false, timeBetweenEvictionRunsMillis=-1, minEvictableIdleIimeMillis=600000, testOnBorrow=true}
[org.apache.ojb.broker.accesslayer.JdbcAccess] DEBUG: executeQuery : Query from class fr.cgbi.samples.persistence.ojb.Application where null
[JDO] DEBUG: OjbStoreManager.flush: end, err=false
[JDO] DEBUG: OjbStoreConnector.commit
[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
[JDO] DEBUG: OjbStoreManager.flush: fr.cgbi.samples.persistence.ojb.Application{0}, P_NEW
[JDO] DEBUG: OjbStoreManager.insert
[org.apache.ojb.broker.accesslayer.JdbcAccess] DEBUG: executeInsert : [EMAIL PROTECTED]
[JDO] DEBUG: OjbStoreManager.flush: end, err=false
[JDO] DEBUG: OjbStoreConnector.commit
0 [main] INFO fr.cgbi.commons.persistence.testcase.JDOPersistenceManagerTest - app.getId()=0 <-- PRIMARY KEY



I had inserted the internal tables of OJB but the insertion return the same result :-(


Thanks for your help
Alexandre Touret

______________________________
Alexandre Touret
CGBI
69 Boulevard Galliéni
92130 Issy les Moulineaux
tel.: 01/55/95/53/95        Poste: 5395
mailto:[EMAIL PROTECTED]

Reply via email to