Re: New JCache returning hollow objects

2017-03-09 Thread Andrus Adamchik
I was worried for a second :) BTW, we just discovered a limitation specific to JCache, which may or may not be relevant to you: https://issues.apache.org/jira/browse/CAY-2259 I am working on addressing it in M6 (and hopefully before that in Bootique). Andrus > On Mar 10, 2017, at 1:02 AM, Lon

Re: New JCache returning hollow objects

2017-03-09 Thread Lon Varscsak
Never mind, problem solved. I turned out I had another bit of code using JCache (for something else) with the same cache name. It was creating the cache first and specifying it should storeByValue = true (thereby causing copying of the CayenneDataObject on the second reference). Whew. :P -Lon

Re: ObjectCache

2017-03-09 Thread Lon Varscsak
Ah, okay, cool. On Thu, Mar 9, 2017 at 11:16 AM, John Huss wrote: > Yes, but an ObjectSelect will not rely on the snapshot cache - it can't. > > On Thu, Mar 9, 2017 at 11:46 AM Lon Varscsak > wrote: > > > Hmm, are you sure John? I agree that the Objects won’t be in any object > > cache, but wo

New JCache returning hollow objects

2017-03-09 Thread Lon Varscsak
Hey guys, This morning I switched to the new JCache implementation (using EHCache 3 as the provider) however, when it returns objects from the cache I’m getting hollow objects. Any ideas? -Lon

Re: ObjectCache

2017-03-09 Thread John Huss
Yes, but an ObjectSelect will not rely on the snapshot cache - it can't. On Thu, Mar 9, 2017 at 11:46 AM Lon Varscsak wrote: > Hmm, are you sure John? I agree that the Objects won’t be in any object > cache, but won’t the data be in the snapshot cache (just like EOF)? > > On Wed, Mar 8, 2017 at

Re: ObjectCache

2017-03-09 Thread Lon Varscsak
Hmm, are you sure John? I agree that the Objects won’t be in any object cache, but won’t the data be in the snapshot cache (just like EOF)? On Wed, Mar 8, 2017 at 2:30 PM, John Huss wrote: > Right > On Wed, Mar 8, 2017 at 3:16 PM Musall, Maik wrote: > > > And unless I'm explictly creating a qu

Re: Automatically create index for foreign keys

2017-03-09 Thread John Huss
It doesn't do this currently. On Thu, Mar 9, 2017 at 6:30 AM Mark Stobbe wrote: > Hi all, > > Do you know if its possible to automatically generate SQL statements for > creating indices on foreign key relations? > > Best regards, > Mark >

Automatically create index for foreign keys

2017-03-09 Thread Mark Stobbe
Hi all, Do you know if its possible to automatically generate SQL statements for creating indices on foreign key relations? Best regards, Mark