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 these -- Cayenne Modeler doesn't map keys
(primary or foreign) into the ObjEntity by default, although you can
manually do so if you need them. Cayenne transparently manages the
relationships for you behind-the-scenes.
/dev/mrg
On Sun, Feb 24, 2008 at 6:09 PM, choppa <c.oppawsk..mx.de> wrote:
>
> 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 context: http://www.nabble.com/cayenne-tutorial%3A-modeler-does-not-offer-foreign-keys-tp15670758p15670758.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.
>
>
This archive was generated by hypermail 2.0.0 : Sun Feb 24 2008 - 20:33:43 EST