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

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?