I've the following 3 table's with example values of
Vehicles ( id = 1, type_id = 20 , ... )
Vehicle_Types ( vt_id = 20, class_id = 160, ... )
Vehicle_Classes ( vcls_id = 160, name = "Concrete1" )
I've got
public class Concrete1 : Vehicle
{
}
And I want nhibernate to instantiate an Concrete1 when loading vehicle #1 in
Vehicle /*Concrete1*/ v = session.load<Vehicle>(1);
How could I do that with automappings? Thanks in advance.
Edit1
I'm starting to think this is impossible, therefore any workaround would be appreciated. Any clue for the xml (non fluent) version might be of a great help either.