I habe a list of objects that are all inherited from a common
baseclass.

Baseclass ist "parameter" and is a real entity (with own table) but is
abstract. My parameters (like "languagte", "titletype", "texttype",
"picturetype",...) are all inherited from "parameter" and some of them
have own tables (join-subclass) othes haven't (subclass).

Now I habe an object that schould have a many-to-one relation property
to an existing "parameter" of one of the inherited types... for
example "language". But it can be any of the existing parameters in
the system. I want to bind the property to the baseclass only.

How can I tell NHibernate that I want to have a relation to the PK
(ID) of "parameter"? Of course the column in my entity will call
"paraemter_id", but I also want to have a foreign-key constraint to
the "parameter"-table.

Thanks for any help. :-)

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to