Pessoal, ao utilizar a estratégia SINGLE_TABLE é lançado a seguinte exception. Como solucionar?
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.WrongClassException: Object [id=1] was not of the specified subclass [br.com.alura.loja.modelo.Produto] : Discriminator: at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154) at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1542) at org.hibernate.query.Query.getResultList(Query.java:165) at br.com.alura.loja.dao.ProdutoDAO.buscaTodos(ProdutoDAO.java:28) at br.com.alura.loja.testes.CadastroDeProduto.buscaProdutos(CadastroDeProduto.java:28) at br.com.alura.loja.testes.CadastroDeProduto.main(CadastroDeProduto.java:17) Caused by: org.hibernate.WrongClassException: Object [id=1] was not of the specified subclass [br.com.alura.loja.modelo.Produto] : Discriminator: at org.hibernate.loader.Loader.getInstanceClass(Loader.java:1941) at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1722) at org.hibernate.loader.Loader.getRow(Loader.java:1615) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:745) at org.hibernate.loader.Loader.processResultSet(Loader.java:1008) at org.hibernate.loader.Loader.doQuery(Loader.java:964) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:354) at org.hibernate.loader.Loader.doList(Loader.java:2838) at org.hibernate.loader.Loader.doList(Loader.java:2820) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2652) at org.hibernate.loader.Loader.list(Loader.java:2647) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:506) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:396) at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:219) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1404) at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1565) at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1533) ... 4 more