Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hibernate:应该为子类重复父类中的关联_Hibernate_Jpa - Fatal编程技术网

Hibernate:应该为子类重复父类中的关联

Hibernate:应该为子类重复父类中的关联,hibernate,jpa,Hibernate,Jpa,我想知道在父类和Parent1类中是否存在任何关系。然后,我可以从Child类使用相同的关系来获取Child1类 类通用日历{ @JoinColumncolumn=FK\u CUR\u GEN\u CAL GenericCalendarVersion当前GenericCalendarVersion; } 类GenericCalendarVersion{ } 类ProcessingCalendar扩展了GenericCalendar{ } 类ProcessingCalendarVersion扩展了

我想知道在父类和Parent1类中是否存在任何关系。然后,我可以从Child类使用相同的关系来获取Child1类

类通用日历{ @JoinColumncolumn=FK\u CUR\u GEN\u CAL GenericCalendarVersion当前GenericCalendarVersion; } 类GenericCalendarVersion{ } 类ProcessingCalendar扩展了GenericCalendar{ } 类ProcessingCalendarVersion扩展了GenericCalendarVersion{ }
所以我想从ProcessingCalendar中检索ProcessingCalendarVersion。有可能买一个吗

您编写的代码有点像这样,您将为每个子类的处理日历映射执行继承映射,并为处理日历执行继承映射,您将通过强制转换从hibernate会话的get方法返回的对象来检索处理日历对象,并且您可以访问处理日历版本对象从加载的对象。

您是否有GenericCalendarVersion.class的用户类型?