【问题标题】:Multiple inheritance in hibernate?休眠中的多重继承?
【发布时间】:2016-02-21 21:05:57
【问题描述】:

可以在hibernate ORM中映射多重继承吗? https://wiki.eclipse.org/Teneo/Hibernate/ModelRelational/Inheritance_Mapping 说hibernate本身不支持多重继承,有没有办法实现多重继承?(注意它的多重继承不是多级继承)。

【问题讨论】:

    标签: java hibernate orm multiple-inheritance


    【解决方案1】:

    java 中的多重继承只能通过接口实现,而不是对象。因为 Hibernate 是 ORM 框架,所以它不映射接口,而是将类映射到数据库表。因此,Hibernate 中没有多重继承。

    【讨论】:

      猜你喜欢
      • 2013-09-15
      • 1970-01-01
      • 2011-03-30
      • 1970-01-01
      • 2011-04-03
      • 1970-01-01
      • 1970-01-01
      • 2016-10-04
      相关资源
      最近更新 更多