Re: Cayenne and Spring?

2018-01-08 Thread Frank Herrmann
ler that extends > CayenneDataObject do have these public getters/setters. The class is > however abstract, but I'm using the class created by the modeller that > extends the abstract modeller class. > > Anyone that have any experience from Cayenne and Spring that have some > i

Re: Cayenne with Transaction Manager (Atomikos)

2016-09-23 Thread Frank Herrmann
on dev@. > > Thanks, > Andrus > > > > On Sep 20, 2016, at 9:30 AM, Frank Herrmann <frank.herrmann@ > modernizingmedicine.com> wrote: > > > > Hello all, > > > > I was wondering if anyone has had any experience using a transaction > > manager wit

Re: Cayenne with Transaction Manager (Atomikos)

2016-09-21 Thread Frank Herrmann
bases while doing my research into the best approach. On Tue, Sep 20, 2016 at 7:20 PM, Aristedes Maniatis <a...@maniatis.org> wrote: > On 20/09/2016 11:30pm, Frank Herrmann wrote: > > Hello all, > > > > I was wondering if anyone has had any experience usin

Cayenne with Transaction Manager (Atomikos)

2016-09-20 Thread Frank Herrmann
Cayenne with Atomikos (or other transaction manager)? Thanks in advance. -Frank -- FRANK HERRMANN SENIOR SOFTWARE ENGINEER T: 561-880-2998 x1563 E: frank.herrm...@modmed.com [image: [ Modernizing Medicine ]] <http://www.modmed.com/> [image: [ Facebook ]] <http://www.fac

Re: Ordering by date on a timestamp field

2016-06-09 Thread Frank Herrmann
DB and mapping it to java.time.LocalTime in our model class. Then we > just modified the setter for the dateTime value to also set the date-only > value. > > Cheers, > - hugi > > // Hugi Thordarson > // http://www.loftfar.is/ > // s. 895-6688 > > > > >

Re: Object Cache and Child Objects - Cayenne 3.1

2016-05-19 Thread Frank Herrmann
Thanks for the quick response. :) On Thu, May 19, 2016 at 6:19 AM, Andrus Adamchik <and...@objectstyle.org> wrote: > Just committed a fix to 3.1 and 4.0 branches: > https://issues.apache.org/jira/browse/CAY-2084 > > > > On May 18, 2016, at 5:27 PM, Frank

Re: Object Cache and Child Objects - Cayenne 3.1

2016-05-18 Thread Frank Herrmann
the same id), Cayenne > > does another call to the database, because it cannot find the User object > > in the cache (because it stored it as a Staff object). > > Could be a bug. Which API are you using? Cayenne.objectForPK(..) ? > > Andrus > > > > > On May 18, 2016, at

Object Cache and Child Objects - Cayenne 3.1

2016-05-18 Thread Frank Herrmann
as a Staff object. The next time the user goes to retrieve the User object (by the same id), Cayenne does another call to the database, because it cannot find the User object in the cache (because it stored it as a Staff object). Thanks again for the help. -Frank -- FRANK HERRMANN SOFTWARE

Re: Caching Relationship Objects/Queries - Cayenne 3.1

2016-05-17 Thread Frank Herrmann
, it still have the fault. -Frank On Tue, May 17, 2016 at 3:24 PM, Frank Herrmann < frank.herrm...@modernizingmedicine.com> wrote: > Thanks. That is pretty much our issue. If I do a prefetch however on > object1 I everything works as expected. I'll have to dig deeper into our > c

Re: Caching Relationship Objects/Queries - Cayenne 3.1

2016-05-17 Thread Frank Herrmann
appened to your object2 between the first and second calls to getObject1() > which is causing the fault to be re-established and therefore re-tripped. > > mrg > > > > On Tue, May 17, 2016 at 2:29 PM, Frank Herrmann < > frank.herrm...@modernizingmedicine.com> wrot

Re: Caching Relationship Objects/Queries - Cayenne 3.1

2016-05-17 Thread Frank Herrmann
hes object1 > object2 = // refetch object2 from cache > object1 = object2.getObject1(); // trips fault, fetches object1 > > Thanks, > > mrg > > > On Tue, May 17, 2016 at 9:32 AM, Frank Herrmann < > frank.herrm...@modernizingmedicine.com> wrote: > > >

Caching Relationship Objects/Queries - Cayenne 3.1

2016-05-17 Thread Frank Herrmann
query cache? Thanks for the help. -Frank -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 x1563 E: frank.herrm...@modmed.com [image: [ Modernizing Medicine ]] <http://www.modmed.com/> [image: [ Facebook ]] <http://www.facebook.com/modernizingmedicine> [image: [ Linke

Re: Tracking down a Runtime Relationship - Cayenne 3.1

2016-03-19 Thread Frank Herrmann
nerates when it loads the > > model into memory. > > > > So if you look in the log which it also sends to System.err and search > > for "runtimeRelationship725" then you will be able to see which entity > > it's associated with. At least then he'll have a c

Re: Tracking down a Runtime Relationship - Cayenne 3.1

2016-03-19 Thread Frank Herrmann
ity method to dump the model's > source/destination relationship information immediately after loading the > model into memory. Then, when you get the validation exception, you can > reference that data dump for assistance. > > mrg > > PS. What version of Cayenne? > > >

Tracking down a Runtime Relationship - Cayenne 3.1

2016-03-18 Thread Frank Herrmann
to try and figure out what object this runtime relationship is attached to. My question is, is there an easy way to pinpoint what object this relationship is attached to, or what relationship it is reversing so he can troubleshoot the validation error? Thanks, -Frank -- FRANK HERRMANN SOFTWARE

Re: QueryCache @CacheGroups Annotation

2016-02-09 Thread Frank Herrmann
Frank On Thu, Feb 4, 2016 at 2:23 PM, Frank Herrmann < frank.herrm...@modernizingmedicine.com> wrote: > Thanks for the feedback. I think I prefer to keep everything in the > module, so I'll try the first solution. > > -Frank > > On Thu, Feb 4, 2016 at 2:16 PM, Andrus Adamch

Re: QueryCache @CacheGroups Annotation

2016-02-04 Thread Frank Herrmann
ove to our docs :)) > > Here it is for 4.0: > > > https://github.com/apache/cayenne/commit/5d3e141a9635dc28ce358d048840e74b76b2b0fd > > We'll publish it on the site in a few days hopefully.. > > Andrus -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 x1563 E:

Re: QueryCache @CacheGroups Annotation

2016-02-04 Thread Frank Herrmann
wse/CAY-2035 , so the first line is no > longer needed. > > >> CacheInvalidationFilter cacheInvalidationFilter = new > >> CacheInvalidationFilter(); > >> cayenneRuntime.getDataDomain().addFilter(cacheInvalidationFilter); > > This is also a valid solution. > > A

Re: QueryCache @CacheGroups Annotation

2016-02-04 Thread Frank Herrmann
r the runtime is created: > > CacheInvalidationFilter cacheInvalidationFilter = new > CacheInvalidationFilter(); > cayenneRuntime.getDataDomain().addFilter(cacheInvalidationFilter); Is implementing the CacheInvalidationFilter via DI not available in Cayenne 3.1? Thanks again, -Frank On Thu, Fe

Re: QueryCache @CacheGroups Annotation

2016-02-03 Thread Frank Herrmann
is the 3.0 documentation. Thanks again, -Frank On Wed, Feb 3, 2016 at 3:57 PM, Frank Herrmann < frank.herrm...@modernizingmedicine.com> wrote: > Is the annotation used for the Object Cache then and not the Query Cache? > > On Wed, Feb 3, 2016 at 3:10 PM, Frank Herrmann

Re: QueryCache @CacheGroups Annotation

2016-02-03 Thread Frank Herrmann
Is the annotation used for the Object Cache then and not the Query Cache? On Wed, Feb 3, 2016 at 3:10 PM, Frank Herrmann < frank.herrm...@modernizingmedicine.com> wrote: > So, is the CacheGroups annotation used by the query cache at all? If I > have to set the cache group via cod

Re: Using jconsole to monitor Ehcache

2016-02-03 Thread Frank Herrmann
to use the Spring started Ehcache instance. Thanks for the reply. -Frank On Tue, Feb 2, 2016 at 4:34 PM, Aristedes Maniatis <a...@maniatis.org> wrote: > On 3/02/2016 5:42am, Frank Herrmann wrote: > > Hello all, > > > > I'm working on switching our query caching to Ehca

Re: QueryCache @CacheGroups Annotation

2016-02-03 Thread Frank Herrmann
y(cacheStrategies.get(searchContext.getCacheStrategy())); > } > return query; > } Thanks Andrus. On Wed, Feb 3, 2016 at 2:14 PM, Andrus Adamchik <and...@objectstyle.org> wrote: > Do you have an example of SelectQuery fetching StatusFirms? > > Andrus > > > On Feb

Re: QueryCache @CacheGroups Annotation

2016-02-03 Thread Frank Herrmann
query is > associated with. > > Andrus > > > > > > On Feb 3, 2016, at 11:04 PM, Frank Herrmann < > frank.herrm...@modernizingmedicine.com> wrote: > > > > Sure. It takes a few hops to get there but here it is. > > > > The actual search is

Using jconsole to monitor Ehcache

2016-02-02 Thread Frank Herrmann
Hello all, I'm working on switching our query caching to Ehcache. Does anyone know how to monitor Ehcache injected into Cayenne via EhCacheQueryCache in jconsole? In case it matters, I'm using Cayenne 3.1. Thanks for the help. -Frank -- FRANK HERRMANN SOFTWARE ENGINEER T: 561-880-2998 x1563

Re: Cayenne 3.1 - Error using cgen ant task

2016-01-26 Thread Frank Herrmann
gt; > > > > > > > > > > > > > > > classname="org.apache.cayenne.tools.CayenneGeneratorTask"> > > > > > > > > > > > > On Tue, Jan 26, 2016 at 1:03