I am in the process of learning Hinbernate, so a thought passed if I could map two classes to one DB table.
Ex :
Class Developer {
String name;
}
Class Manager {
String name;
}
Whereas both these classes are mapped to one table, lets say by name Employee with one column of String datatype.
Will Hibernate be able to create rows in table based on the class I am using for creating. Or do you think there should be a discriminator column to differentiate between classes?
NOTE : There are no inheritance relationships between the classes, they are separate.