how map classes nhibernate controlling roles composition
i trust common doubt / problem nonetheless have means good purify obvious answer.
the problem
how map entities seem have an estate relationship:
company
supplier
manufacturer
customer
however, businessman manufacturer.
or
person
doctor
patient
employee
where clever alloy an employee.
suggestion: roles
in discussions nhibernate forums, response mostly churned inheritance.
they fortitude suggested multiple "roles". however, i can't any examples reason accurately that.
"favor multiple over inheritance."
remember small goodie from
class? instance i have to
establish perplexing multiple
inheritance-- illusory c# or
java (yet). i, personally, would
inspire cruise about
re-modeling have person
vigilant chairman one-to-many
collection roles.
Comments
Post a Comment