【发布时间】:2016-03-11 20:46:07
【问题描述】:
我有三个类 hierarchy 为
-
ParentClass.javahaving commons properties used for both ChildClass1 and ChildClass2. -
ChildClass1 extends ParentClass具有用于此 ChildClass1 的属性 + 它还使用父类的一些公共属性
-
ChildClass2 extends ParentClass具有用于此 ChildClass2 的属性 + 它还使用父类中的一些公共属性
所有属性都可以在两列表格中使用
**Key value** Type
---------------------------------------
propertyKey1 propertyValue1 Child1
propertyKey2 propertyValue2 Child1
propertyKey3 propertyValue3 Child2
propertyKey4 propertyValue4 Child2
propertyKey5 propertyValue5 CommonPorperty
.. .. ..
propertyKeyn propertyValuen ..
现在我不确定如何从休眠继承中加载它们?
为愚蠢的问题道歉......
提前致谢
【问题讨论】:
-
你说的是两种属性吗? hibernate-entity 的属性是具有特定名称的 java 字段,但看起来您的属性名称是表中的值....请重写。
-
检查描述符...