Cayenne does not find object in his graph after SelectQuery.

2009-09-09 Thread lmarc...@smausa.com
Hello everybody, I have a strange problem, that is difficult to reproduce so I would like to gather information about the cayenne internals. In my database I have an object JOB that has ID, NAME, PRIORITY as PKs. I have a method getJobByID(ID, NAME) that returns the unique job without spec

Re: Relationships refresh possible BUG

2009-06-17 Thread lmarc...@smausa.com
ch a list of related objects. RefreshQuery updates the root object, not the related objects. Andrus On Jun 17, 2009, at 3:50 PM, lmarc...@smausa.com wrote: Sure I will give it a try ! I will try to modify some Cayenne unit tests to reproduce the problem I have with RefreshQuery and RelationshipQuery.

Re: Relationships refresh possible BUG

2009-06-17 Thread lmarc...@smausa.com
in 3.0. I have a feeling this type of prefetching should work with joint prefetches since the day when we started using OUTER JOINs for them. Could you give it a try? Andrus On Jun 11, 2009, at 8:08 PM, lmarc...@smausa.com wrote: Hello all ! I have currently a big problem refreshing my

Relationships refresh possible BUG

2009-06-11 Thread lmarc...@smausa.com
Hello all ! I have currently a big problem refreshing my relationships with cayenne 3.0M6 (tested with M5 too). I have a table JOB with some extended/dynamic properties and another related JOB_AUX table (kinda key/value pair table). So there is a to-many relationship between JOB->JOB_AUX wi