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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -