1

JPA Discriminator アノテーションを単一テーブル継承戦略と Hibernate ORM 実装で使用して、アプリケーション内のさまざまなユーザー タイプを処理しています。不明な識別子の値がデータに存在する場合、Hibernate は次のような例外をスローします。

Caused by: org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: Object with id: 3867 was not of the specified subclass: com.example.persistence.model.BaseUser (Discriminator: report); nested exception is org.hibernate.WrongClassException: Object with id: 3867 was not of the specified subclass: com.example.persistence.model.BaseUser (Discriminator: report)

不明な識別子の値を無視するJPAの方法/注釈はありますか?

ありがとうございました、

トム

4

0 に答える 0