Mapping fake FKs as relationships?

From: George Stan (george.stan..ahoo.com)
Date: Sun Jan 10 2010 - 09:05:31 EST

  • Next message: Andrus Adamchik: "Re: Mapping fake FKs as relationships?"

    Hi,

    Is it possible to map fake foreign keys with CM?

    In many DBs for webapps there seem to be quite a few tables (for entities like Tags, Comments, Attachments, Events) to have relationships to many other tables, and instead of a FK, a combination of two fields is used (target_table_name and target_row_id).

    I know that other ORMs (like ActiveRecord from RoR) have this feature, but I'm not sure about Cayenne.

    Thanks in advance,

    George.

          



    This archive was generated by hypermail 2.0.0 : Sun Jan 10 2010 - 09:06:11 EST