Cayenne does not throw an exception when an outer join is attempted

2006-08-17 Thread Øyvind Harboe
Outer joins are not supported, I know. Meanwhile I miss being *told* when I'm attempting an outer join, minimally runtime. One of the reasons I'm using Cayenne is that I don't want to think about SQL, so I don't. It hurts even thinking about thinking about how Cayenne Expressions turn into SQL

Flex Cayenne

2006-08-17 Thread Malcolm Edgar
Hi All, I am currently having problems integrating Flex Data Services with Cayenne. With the Flex 2 design patterns, I have a corresponding ActionScript DataObject on the client, with is then converted into a Cayenne DataObject using reflection by some Flex serialization libraries. Creating

Re: Flex Cayenne

2006-08-17 Thread Andrus Adamchik
Hi Malcolm, You can traverse an object graph using ClassDescriptor with a custom PropertyVisitor. For instance DataContext.registerNewObject(..) implements a similar algorithm for the NEW objects. Andrus On Aug 17, 2006, at 7:33 AM, Malcolm Edgar wrote: Hi All, I am currently having

Re: Cayenne does not throw an exception when an outer join is attempted

2006-08-17 Thread Andrus Adamchik
Would it make sense for Cayenne to throw an exception when an outer join is attempted? Could you be more specific on when it should detect that? IIRC there were some discussions on that in the past. You provide no references though. Also there is an effort underway to support outer joins

Re: Flex Cayenne

2006-08-17 Thread Malcolm Edgar
Hi Andrus, thanks for the tip. I am working on this path.. regards Malcolm Edgar On 8/17/06, Andrus Adamchik [EMAIL PROTECTED] wrote: Hi Malcolm, You can traverse an object graph using ClassDescriptor with a custom PropertyVisitor. For instance DataContext.registerNewObject(..) implements a

Re: Is andExp supported on Scalar booleans?

2006-08-17 Thread Andrus Adamchik
Good point. Another suggestion: instead of using ASTScalar, you can implement a similar custom subclass that extends ConditionNode. E.g. ASTBoolean extends ASTCondition. We should include this in Cayenne at some point too... Andrus On Aug 16, 2006, at 4:47 PM, Øyvind Harboe wrote: I'm

sorting and ordering pk field in memory

2006-08-17 Thread Zvonimir Spajic
Hello, is there a nice way to sort a List of Cayenne-Objects on o primary-key-field, e.g. id (pk) in memory, because the user can resort the existing list more than one time. I don't want to read it out from DB every time. This doesn't help: this.resultList = new

Re: Cayenne does not throw an exception when an outer join is attempted

2006-08-17 Thread Øyvind Harboe
On 8/17/06, Andrus Adamchik [EMAIL PROTECTED] wrote: Would it make sense for Cayenne to throw an exception when an outer join is attempted? Could you be more specific on when it should detect that? IIRC there were some discussions on that in the past. You provide no references though. I

Re: sorting and ordering pk field in memory

2006-08-17 Thread Andrus Adamchik
The easiest way to order on a property that is not really a property is to create a cover getter for it in the persistent class: public int getId() { return DataObjectUtils.intPkForObject(this); } Andrus On Aug 17, 2006, at 10:11 AM, Zvonimir Spajic wrote: Hello, is there a nice way to