org.hibernate.MappingException: Could not instantiate id generator [entity-name=null]

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    HiLo generator strategy not working

    Stack Overflow | 1 year ago | Aditya Sawant
    org.hibernate.MappingException: Could not instantiate id generator [entity-name=null]
  2. 0

    HiLo generator strategy not working

    codegur.us | 6 months ago
    org.hibernate.MappingException: Could not instantiate id generator [entity-name=null]
  3. 0

    Failure to save object which contains a collection of components - Spring Forum

    spring.io | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: testingPU] Unable to build EntityManagerFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Support for 'hilo' generator has been removed

      at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.getIdentifierGeneratorClass()
    2. Hibernate
      BasicCollectionPersister.<init>
      1. org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.getIdentifierGeneratorClass(DefaultIdentifierGeneratorFactory.java:132)
      2. org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.createIdentifierGenerator(DefaultIdentifierGeneratorFactory.java:112)
      3. org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:259)
      4. org.hibernate.persister.collection.AbstractCollectionPersister.<init>(AbstractCollectionPersister.java:429)
      5. org.hibernate.persister.collection.BasicCollectionPersister.<init>(BasicCollectionPersister.java:57)
      5 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    4. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.persister.internal.PersisterFactoryImpl.createCollectionPersister(PersisterFactoryImpl.java:152)
      2. org.hibernate.persister.internal.PersisterFactoryImpl.createCollectionPersister(PersisterFactoryImpl.java:140)
      3. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:408)
      3 frames
    5. org.hibernate.boot
      SessionFactoryBuilderImpl.build
      1. org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
      1 frame
    6. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:708)
      2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
      2 frames
    7. com.hbt
      HibernateTest.main
      1. com.hbt.HibernateTest.main(HibernateTest.java:35)
      1 frame