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

Reply via email to