Hello,
I'm trying to get a simple increment generator working on a MySQL database that I'm running on my notebook computer. The generator won't instatiate. I figure I must have forgotten some params. I've looked all over this website and the reference docs for params that I might be missing; however, I don't see the increment generator described anywhere -- at least not fully.
I've also read the source code and short documentation for class package org.hibernate.id.IncrementGenerator
Could someone please point to where I should look for a complete description of the increment generator (and other generators for that matter)?
Thanks!
P.
Hibernate version:
hibernate2
Mapping documents:
>
<class
name="com.myco.product.dao.hibernate.entity.ObjTypHibernateEntity"
table="OBJTYP"
>
<id
name="ID"
column="ID"
type="java.lang.Long"
unsaved-value="null"
>
<generator class="increment"> </generator>
</id>
Full stack trace of any exception that occurs:
ehcache.hibernate.Provider
Feb 5, 2006 3:20:30 PM net.sf.hibernate.cfg.Configuration configureCaches
INFO: instantiating and configuring caches
Feb 5, 2006 3:20:30 PM net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
About to throw ExceptionInInitializerError: net.sf.hibernate.MappingException: could not instantiate id generator
java.lang.NoClassDefFoundError
at de.kemaiev.elektra.dao.hibernate.AbstractHibernateDAO.findAll(AbstractHibernateDAO.java:130)
at de.kemaiev.elektra.dao.hibernate.ObjTypHibernateDAO.findAll(ObjTypHibernateDAO.java:31)
at de.kemaiev.elektra
Name and version of the database you are using:
MySQL 5.0
|