我正在学习Hinbernate, 如果我能将两个班 映射到一张DB桌子上,
ex :
Class Developer {
String name;
}
Class Manager {
String name;
}
这两个类别都绘制在一张表格上,让我们用名称表示雇员,用一列字符串数据类型。
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?
注:各等级之间没有继承关系,它们是分开的。