hibernate - How to handle org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException with single table inheritance? -
i'm using jpa discriminator annotation single table inheritance strategy , hibernate orm implementation handle different user types in application. when unknown discriminator value present in data hibernate throws exception this:
caused by: org.springframework.orm.hibernate3.hibernateobjectretrievalfailureexception: object id: 3867 not of specified subclass: com.example.persistence.model.baseuser (discriminator: report); nested exception org.hibernate.wrongclassexception: object id: 3867 not of specified subclass: com.example.persistence.model.baseuser (discriminator: report)
is there jpa way/annotation ignore unknown discriminator values?
thank you,
tom
Comments
Post a Comment