NHibernate complex one-to-one mapping

Posted by Eugene Strizhok on Stack Overflow See other posts from Stack Overflow or by Eugene Strizhok
Published on 2010-05-31T10:50:23Z Indexed on 2010/05/31 10:52 UTC
Read the original article Hit count: 372

Filed under:
|
|

There is a table A containing common unversioned data for entities. There are also tables B,C,D with versioned data of particular entity type. All of these tables are referencing table A.

The task is to add a mapping of a property of entity's type, for example, stored in table B, which would reference table A, and specify a rule how entity should be fetch from table B based on identifier from table A. (For example, to fetch latest version of an entity).

It it possible with NHibernate?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about mapping