Problem with DB2 UDB

2006-08-01 Thread Nikolai Raitsev
Hello all, I have a problem running Cayenne with DB2 UDB I have a following code: Setting connection properties: /// DataSource dataSource = new PoolManager(com.ibm.db2.jcc.DB2Driver, jdbc:db2://sunlinuxdb2:6/testjdb, 1, 1, NRA, xxx); Configuration config =

Re: UUID as primary key

2006-08-01 Thread Øyvind Harboe
On 7/22/06, Andrus Adamchik [EMAIL PROTECTED] wrote: I see. That makes sense - each DataContext in a nested context chain would create its own instance of object and transition it through the lifecycle. So technically it is still called once per object instance. However the fact that ID can be

Re: Problem with DB2 UDB

2006-08-01 Thread Tore Halset
Hello. Looks like you cayenne does not get access to the database as all at the jdbc-level. Are your connection parameters, username and password correct? Do you have access to the database? - Tore. On Aug 1, 2006, at 10:49, Nikolai Raitsev wrote: Hello all, I have a problem running

Re: Problem with DB2 UDB

2006-08-01 Thread Andrus Adamchik
The first error seems to be related to the second - for whatever reason JDBC connection fails (and DB2 is at its best not telling why). I don't have a specific advice, as this can be any number of things (including permissions, etc.). Try connecting from JDBC, bypassing Cayenne and see if

caching query behavior changed?

2006-08-01 Thread Bryan Lewis
I have some old code that I've been running for a long time. It creates a caching SelectQuery like this: SelectQuery query = new SelectQuery(MyEntityName); query.setCachePolicy(QueryMetadata.SHARED_CACHE); query.setName(MyQueryName); if (refreshing) {

Re: caching query behavior changed?

2006-08-01 Thread Andrus Adamchik
On Aug 1, 2006, at 2:52 PM, Bryan Lewis wrote: I have some old code that I've been running for a long time. It creates a caching SelectQuery like this: SelectQuery query = new SelectQuery(MyEntityName); query.setCachePolicy(QueryMetadata.SHARED_CACHE);