您好,我正在使用hibernate-ogm将我的应用程序mysql数据库迁移到mongodb。在我的pojo中,我使用了InheritanceType.JOINED,但我在文档中读到了"Hibernate OGM支持以下继承策略:* InheritanceType.TABLE_PER_CLASS * InheritanceType.SINGLE_TABLE“,我在下面的链接Inheritance in Hibernate OGM中找到了相同的内容。InheritanceType.JOINED出现错误,InheritanceType.JOINED的解决方案是什么?
Caused by: java.lang.UnsupportedOperationException: Joined subclasses strategy not supported
at org.hibernate.ogm.jpa.impl.OgmPersisterClassResolver.joinedSubclassEntityPersister(OgmPersisterClassResolver.java:32)hibernate-ogm库版本5.0.1最终版
发布于 2016-11-24 19:32:29
恐怕目前唯一的解决方案是使用不同类型的继承映射。
请随时让我们知道您将如何在Hibernate OGM forum中映射此策略。
https://stackoverflow.com/questions/40779297
复制相似问题