5 Replies Latest reply on Mar 11, 2016 1:12 AM by Nick .

    Hibernate issue after upgrading wildfly from 9.0.2 to 10 Final

    Nick . Apprentice

      Hi,

          After migrating wildfly server from 9.0.2.Final to 10.0.0.Final, i'm experiencing the below exception while creating persistent-unit. 

       

      Caused by: org.hibernate.HibernateException: Not all named super-types (extends) were found : [com.sample.model.Sample]

        at org.hibernate.boot.model.source.internal.hbm.EntityHierarchyBuilder.buildHierarchies(EntityHierarchyBuilder.java:76)

        at org.hibernate.boot.model.source.internal.hbm.HbmMetadataSourceProcessorImpl.<init>(HbmMetadataSourceProcessorImpl.java:66)

        at org.hibernate.boot.model.source.internal.hbm.HbmMetadataSourceProcessorImpl.<init>(HbmMetadataSourceProcessorImpl.java:40)

        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.<init>(MetadataBuildingProcess.java:142)

        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:141)

        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)

        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)

      at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)

        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:343)

        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:319)

       

      Some context,  I'm using mix of hbm and jpa annotation and spring to create EntityManagerFactory. Below give is my Sample model class

       

      @Entity

      @Table(name = "tbl_sample")

      public class Sample extends BaseClass {

         private Long id;

         

         @ManyToOne

          @JoinColumn(name = "relationA", nullable = true)

          private RelationA relationA;

      ... etc

      }

       

      Here RelationA  mapping is in hbm file.

       

      Any help ?