I am getting the following exception while running Hibernate
example, pls suggest me how can i resolve it.
Exception in thread "main" org.hibernate.MappingException: could not instantiate id generator
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:98)
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:189)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
at com.msat.hibernate.InsertStudent.main(InsertStudent.java:23)
Caused by: org.hibernate.MappingException: Dialect does not support sequences
at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:556)
at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:94)
Related Tutorials/Questions & Answers:
Advertisements
idid how to find date of birth and gender in
id in html with the help of javascript