Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Mike Kienenberger
On Sat, Dec 29, 2012 at 8:34 PM, Ashley Aitken wrote: >> Having used to actively develop Cayenne applications, but more >> recently having to develop using JPA, which uses an AR approach, I can >> say that it doesn't actually work or help to mix AR and Unit-of-work >> Cayenne DataContext concepts.

Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Ashley Aitken
On 30/12/2012, at 1:50 AM, Mike Kienenberger wrote: > On Sat, Dec 29, 2012 at 8:33 AM, Ashley Aitken wrote: >> Finally, I am also not sure how something like ActiveRecord approach would >> actually work, or be compatible with, Cayenne. To my mind it defeats the >> whole purpose of having a c

Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Mike Kienenberger
On Sat, Dec 29, 2012 at 8:33 AM, Ashley Aitken wrote: > Finally, I am also not sure how something like ActiveRecord approach would > actually work, or be compatible with, Cayenne. To my mind it defeats > the whole purpose of having a container managing the persistence of a > collection of objec

Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Ashley Aitken
Hello All, I hope you don't mind me jumping into this conversation but I find it very interesting (particularly the discussion of rich vs. anemic domain models but also of the ActiveRecord approach, especially today as alternative approaches to persistence, under the banner of NOSQL, are gain

Re: Add ActiveRecord support to Cayenne

2012-12-29 Thread Malcolm Edgar
I think Andrus comment was directed at me. I didn't want to offend anyone. However I am worried that this idea will lead to bad practices, with people hanging query code on the entities, and business rules etc. which leads to highly coupled code. regards On Fri, Dec 28, 2012 at 3:47 AM, emeka o