Hey guys,
is it possible with nhibernate (latest stable version) to map one domain class to multiple tables?
So if i have a class
classA
{
int identID;
string someProp;
string prop1;
string prop2;
string prop3;
}
I want to store this to four different tables. One would be for classA to store identID and someProp properties. The other three tables would be like this:
table1: identId, prop1; table2: identID, prop2; table3: identID, prop3;
How do you tell in the nhibernate mapping file that classA prop1, 2, and 3 come from a different table?
This is rather simplified as i have more than one property to store in each table. I need to do this because I cannot modify the existing data layout. Is there a way to do such a thing with nhibernate?
Thanks!
|