Re: null from CayenneRuntime.getThreadInjector()

2012-08-23 Thread Andrus Adamchik
Hi Tore, Injector is encapsulated in CayenneRuntime, so... ServerRuntime runtime = // assume you have that, since you started Cayenne somehow.. Injector i = runtime.getInjector(); Andrus On Aug 23, 2012, at 12:22 PM, Tore Halset wrote: > Hello. > > I am playing with serialization of cayenne

null from CayenneRuntime.getThreadInjector()

2012-08-23 Thread Tore Halset
Hello. I am playing with serialization of cayenne objects in trunk. This is the first time I do (java) serialization of cayenne stuff. On deserialize I get the following. org.apache.cayenne.CayenneRuntimeException: [v.3.2M1-SNAPSHOT Aug 23 2012 08:32:28] Can't attach to Cayenne runtime. Null i

Re: NuoDB Cayenne Adaptor

2012-08-23 Thread Andrus Adamchik
Re: casting chars to numbers. IMO NuoDB driver does it right and others are doing it wrong ;) With John's type-safe properties available on trunk per CAY-1724 it will be easier for the users to ensure the correct expression argument type: // since AGE is Property, a user can't pass a String he

Re: NuoDB Cayenne Adaptor

2012-08-23 Thread Aristedes Maniatis
On 23/08/12 5:41pm, Malcolm Edgar wrote: Is this the correct approach. The reason I am using Cayenne 3.0.x, is so I can perform testing against our applications, which I think is a good way of verifying this code. I don't recall seeing much change in the bits of code you are touching from 3.0

Re: NuoDB Cayenne Adaptor

2012-08-23 Thread Malcolm Edgar
Hi Andrus, Its going pretty well so far. I have a smallish Cayenne web application running on it with 30 odd tables. The NuoDB JDBC driver is a picky with types, e.g. if you pass a numeric string value "6418" into a Cayenne query as the PK, Cayenne will set this in the PreparedStatement as setObje