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 API to get Cayenne to return a Map, like when using objectContext().performQuery( someQry ) or such like. Thanks. > On 3/10/13 12:50am, [email protected] 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" in the toolbar at the top > > 5. In the ObjRelationship inspector now open, change the collection type > to List, Collection, Map, or Set. > > > Ari > > > > -- > --------------------------> > Aristedes Maniatis > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A >
