Hi, I have a data model that worked with nHibernate 0.8 and does
not work with nHibernate 1.0.1: I have a base class Car
that that joined subclasses FunCar and WorkCar. Now the only
thing I know is that I have a car with ID=34.
In nHibernate 0.8 when I executed
Car car =_session.load(typeof(Car), 34)
and nHibernate determined that this instance of car was
a FunCar then the returned type has been FunCar.
In the new version this does not work anymore!!!
For sure Car car =_session.load(typeof(FunCar), 34)
would return a FunCar, but this only works if you know what
type your object is. I don't know the type and do rely very
heavily on receiving the proper type on such a Load.
What can be done?
Best regards
florian.
|