Duplicate
Details
Details
Assignee
Alex Zaytsev
Alex ZaytsevReporter
ROHIT KAUL
ROHIT KAULLabels
Components
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created September 8, 2011 at 1:05 PM
Updated October 11, 2014 at 11:28 PM
Resolved October 11, 2014 at 11:28 PM
From what I understand, NHibernate does not support polymorphism in value types( Components). It would be useful if component polymorphism could be supported. The equivalent xml could then have something like the <subclass> element under the <component> element.
I currently use the state pattern to track the state of some of my entities. Each potential state is derived from an abstract State Class.All the state objects in the entities lend themselves very naturally as Value types. Without the ability to implement polymorphism for components I am forced to make my state class an entity when in reality its really not one