rattp wrote:
I can't buildSessionFactory it have error code below
Exception in thread "main" java.lang.ExceptionInInitializerError
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:718)
at aa.main(aa.java:43)
Caused by: java.lang.IllegalStateException: No backend found
at net.sf.cglib.CodeGenerator.<init>(CodeGenerator.java:127)
at net.sf.cglib.KeyFactoryGenerator.<init>(KeyFactoryGenerator.java:93)
at net.sf.cglib.KeyFactory.create(KeyFactory.java:114)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:229)
... 2 more
My mapping file is
<class name="db.Contact" table="contact">
<id name="ID" column="ID" unsaved-value="null">
<generator class="identity"/>
</id>
.
.
.
.
</class>
I'm a beginner with hibernate wait for your help :>