Re: RelationshipQuery

2013-10-02 Thread dollj
Hi Ari Thanks for the reply. My model is setup to return a Map for the relationship as per your steps, and that works great. My problems are: 1. How do I tell Cayenne to refetch the data for that relationship (when parent object's cache strategy is set to SHARED_CACHE) ? And/or 2. What is the A

Re: RelationshipQuery

2013-10-02 Thread Aristedes Maniatis
On 3/10/13 12:50am, do...@xsinet.co.za wrote: > Anyway with reference to question 1. performQuery returns a list, but I > need the Map ? 1. Open cayenne modeler 2. Choose the Java entity you want 3. Go to "relationships" and click on the relationship you want to model 4. Click the little "I"

RelationshipQuery

2013-10-02 Thread dollj
Hi 1. I have an ObjEntity with a relationship that returns a Map, which I need to refetch. public Map getResults() { return (Map)readProperty(RESULTS_PROPERTY); } How do I go about it ? 2. With a regular relationship that returns a list I used RelationshipQuery like so: public List

Re: RelationshipQuery

2010-04-26 Thread Joe Baldwin
> > On Apr 26, 2010, at 2:32 PM, Joe Baldwin wrote: > >> I asked this question previously but did not see a reply. >> >> >> I am trying to create a very fast custom fetch that is essentially a >> qualified relationship. My relationships are based on an in

Re: RelationshipQuery

2010-04-26 Thread Andrus Adamchik
to create a very fast custom fetch that is essentially a qualified relationship. My relationships are based on an integer "oid" field. Can I use the RelationshipQuery and qualify it? Or am I on the wrong track?

RelationshipQuery

2010-04-25 Thread Joe Baldwin
I asked this question previously but did not see a reply. I am trying to create a very fast custom fetch that is essentially a qualified relationship. My relationships are based on an integer "oid" field. Can I use the RelationshipQuery and qualify it? Or am I on the wrong track?

RelationshipQuery

2010-04-22 Thread Joe Baldwin
Is there any way to add a qualifier to the RelationshipQuery? (I am trying to create a custom method that essentially returns a qualified RelationshipQuery result set)