net.sf.hibernate.MappingException: could not instantiate id generator

Hibernate JIRA | ZhenGuo YAO | 1 decade ago
  1. 0

    Hibernate Community • View topic - Dialect does not support identity key generation

    hibernate.org | 4 months ago
    net.sf.hibernate.MappingException: could not instantiate id generator
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sf.hibernate.MappingException

      Dialect does not support sequences

      at net.sf.hibernate.dialect.Dialect.getSequenceNextValString()
    2. net.sf.hibernate
      Configuration.buildSessionFactory
      1. net.sf.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:319)
      2. net.sf.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:62)
      3. net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:78)
      4. net.sf.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:83)
      5. net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:635)
      6. net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:716)
      7. net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:42)
      8. net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:136)
      9. net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
      9 frames
    3. hibernate
      HibernateTest.main
      1. hibernate.HibernateTest.main(HibernateTest.java:40)
      1 frame