Re: Relationships across databases

2007-06-20 Thread Øyvind Harboe
On 6/21/07, Juergen Saar <[EMAIL PROTECTED]> wrote: Cayenne is a Framework that brings one of the best ORM available and it would be foolish to implement such a horrible scenarium. I don't know what you find "horrible" about this scenario so I can't reply sensibly to your comment here. One of

Re: Relationships across databases

2007-06-20 Thread Juergen Saar
Cayenne is a Framework that brings one of the best ORM available and it would be foolish to implement such a horrible scenarium. I think this special problem has to be solved by YOU and not by the cayenne-team Sorry ... --- Juergen --- 2007/6/20, Øyvind Harboe <[EMAIL PROTECTED]>: In the link

Re: Relationships across databases

2007-06-20 Thread Øyvind Harboe
On 6/20/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote: If I recall, it means that for a given query select ID from table1 t1, table2 t2 where t1.id = t2.id, you will have to do something like this: List list = select T1_ID from table1; for each item in list { select * from Table2 where t2

Re: Relationships across databases

2007-06-20 Thread Mike Kienenberger
If I recall, it means that for a given query select ID from table1 t1, table2 t2 where t1.id = t2.id, you will have to do something like this: List list = select T1_ID from table1; for each item in list { select * from Table2 where t2.id = item.t1_id } The multiplication is number of the que

Relationships across databases

2007-06-20 Thread Øyvind Harboe
In the link below it says that relationships does not work across databases "as it will require Cayenne to do in memory cartesian product processing". What does this qualifier mean? Does it mean that it is possible to enable this, but it would take a lot of memory? That this feature was considere

RE: Common attributes in the model

2007-06-20 Thread Fredrik Liden
I think you may not be talking about the same thing? Malcolm, we can configure it so the classes extend a specified superclass and add basic general functionality. But any attributes that are listed in that superclass can they really be persisted with Cayenne? That would require some form of mapp

Re: Common attributes in the model

2007-06-20 Thread yongbl
Hi Malcolm, After setting the superclass, I tried to generate the database schema. But the attributes in the superclass is not reflected in the schema. Do I have to manually add to the database the common attributes? If so, then settting the superclass didn't offers any time saving since

RE: Duplicates in to-many relationships

2007-06-20 Thread Kevin Menard
> -Original Message- > From: Alexander Lamb (dev) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 20, 2007 3:24 AM > To: user@cayenne.apache.org > Subject: Re: Duplicates in to-many relationships > > Well, although it works, I still have a small problem. > > When you do a "setAnObje

Error when main class is executed

2007-06-20 Thread janesh
Hi I followed the tutorial to understand the tool. It went fine till main class is executed after adding artists etc. Following error message appears and looks like a basic configuration issue that I missed. Please find the error message. Exception in thread "main" java.lang.IllegalArgumentEx

Re: Duplicates in to-many relationships

2007-06-20 Thread Alexander Lamb (dev)
Well, although it works, I still have a small problem. When you do a "setAnObject" even if it does "magically" handle the "addTo", it does so without calling the public "addToMyList" function. This means I can't add some logic to the addTo function (I need to perform some calculation each t