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

Hibernate JIRA | ZhenGuo YAO | 1 decade ago
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

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

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

    Automated exception search integrated into your IDE

  3. 0

    Using Oracle Sequence in Hibernate

    Coderanch | 1 decade ago | mridul das
    net.sf.hibernate.MappingException: could not instantiate id generator

    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