cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garth Keesler <gar...@gdcjk.com>
Subject Class Relation vs Foreign Key
Date Tue, 06 Nov 2012 10:05:47 GMT
Should/must the name used when defining a relation between classes in 
Modeler be the same as the name used when defining a foreign key in the 
database? As a follow-up, does Cayenne even use FKs or does it depend on 
its own class definitions and indexes in the database to accomplish 
this?  This is in hand-coded class definitions instead of generating the 
classes from the database schema. If FKs are used, how is the 
correlation between relations and foreign keys made or does Cayenne 
depend on the database software to use the appropriate foreign key 
automagically?

Thanx,
Garth

Mime
View raw message