Re: Disable of auto-generated pk

2012-09-12 Thread Francesco Romano
javax.persistence.. > > I really recommend 3.1. It doesn't have all the JPA baggage of 3.0. > > Andrus > > On Sep 7, 2012, at 4:20 PM, Francesco Romano wrote: > >> I've already seen those pages.. >> So there is nothing "ready" >>

Re: Disable of auto-generated pk

2012-09-07 Thread Francesco Romano
c as of yet: > > http://markmail.org/message/n7licqa27qdecfzy > http://markmail.org/message/admkhniktnvnfid5 > > Andrus > > > > On Sep 7, 2012, at 10:45 AM, Francesco Romano wrote: >> Ok.. I found the problem.. It is not related to Cayenne, but to our &

Re: Disable of auto-generated pk

2012-09-07 Thread Francesco Romano
Ok.. I found the problem.. It is not related to Cayenne, but to our environment. So.. the question becomes: how can I integrate Cayenne in an OSGi Environmnet? Francesco On Sep 6, 2012, at 5:00 PM, Francesco Romano wrote: > Hi everybody. > > I have a problem with cayenne. > I migr

Disable of auto-generated pk

2012-09-06 Thread Francesco Romano
of if (generatesKeys) { processGeneratedKeys(statement, delegate); } and it is never fired! I add that I use Cayenne 3.0 Thanks Francesco Romano

Re: Cayenne shared cache invalidation

2012-08-22 Thread Francesco Romano
> > On Aug 22, 2012, at 4:12 PM, Francesco Romano wrote: > >> On Aug 22, 2012, at 3:04 PM, Andrus Adamchik wrote: >> >>>> Local cache is local to a data context (right?). But currently the >>>> application creates a new datacontext for every "tran

Re: Cayenne shared cache invalidation

2012-08-22 Thread Francesco Romano
ontext instanceof DataContext) { DataContext dataContext = (DataContext)context; QueryCache cache = dataContext.getParentDataDomain().getQueryCache(); cache.removeGroup(object.getClass().getName()); } } Is this accepta

Cayenne shared cache invalidation

2012-08-21 Thread Francesco Romano
private void clearCache(Object entity) { Persistent object = (Persistent)entity; QueryCache cache = ((BaseContext)object.getObjectContext()).getQueryCache(); cache.removeGroup(object.getClass().getName()); } Any help? Thanks Regards Francesco Romano