Re: cayenne-tutorial: modeler does not offer foreign keys

2008-02-24 Thread Michael Gentry
For the PAINTING DbEntity (the database definition, not the Java ObjEntity definition) in Cayenne Modeler, look under the Attributes tab. There you'll see an ARTIST_ID and a GALLERY_ID. These are the foreign keys to the ARTIST and GALLERY. If you are looking at the ObjEntity, you will not see th

cayenne-tutorial: modeler does not offer foreign keys

2008-02-24 Thread choppa
Hi, I just started with the cayenne-tutorial using java-6 and cayenne-2.0.4. After scanning the forum I did not find any hints for my problem. So please excuse my stupid question: How are the foreign keys in the table PAINTING defined? Thanks for your help, Choppa -- View this message in conte

Re: CayenneObjectManager - alternative API for using Apache Cayenne

2008-02-24 Thread David Marko
I just read both links. I think that having some concept, that avoids using DAO schema, would be very good. For most web applications DAO is just overhead and require to write large infrastructure. Would be good to have flexibility of ActiveRecord or Django ORM for many solutions where just 5 ta

Re: CayenneObjectManager - alternative API for using Apache Cayenne

2008-02-24 Thread Andrus Adamchik
Hi Ari, thanks for pointing to that dev discussion thread. I was going to do the same. In fact my own interest in this approach started as a result of David posting his first example: https://issues.apache.org/cayenne/browse/CAY-877 And I hope to reuse his work if possible (and at the m

Re: CayenneObjectManager - alternative API for using Apache Cayenne

2008-02-24 Thread David Marko
Haven't read it yet. Will look at it, thanks very much! I would really appreciate some Cayenne standardized way, if there will be some. David Marko Aristedes Maniatis wrote: On 24/02/2008, at 9:13 PM, David Marko wrote: // find first item by property and given condition co_manager .find(Cla

Re: CayenneObjectManager - alternative API for using Apache Cayenne

2008-02-24 Thread Aristedes Maniatis
On 24/02/2008, at 9:13 PM, David Marko wrote: // find first item by property and given condition co_manager .find(Class).byProperty("property").BETWEEN(value1,value2).first() co_manager.find(Class).byProperty("property").LIKE(value).first() co_manager.find(Class).byProperty("property").IN(range

CayenneObjectManager - alternative API for using Apache Cayenne

2008-02-24 Thread David Marko
Hello, a few months ago a wrote about creating alternative approach for using Apache Cayenne. Actualy I use Cayenne with Click Framework and following scenario came from practice on several projects. The main idea is to use Cayenne as very stable background(engine) but alter API to something cl