Joined: Tue Aug 30, 2005 12:02 pm Posts: 7
|
I'm trying to get my first Hibernate application going.
Using this mapping
<id name="id" column="PARTY_ID" type="int" unsaved-value="0">
<generator class="sequence" >
<param name="sequence">PARTY_ID_SEQUENCE</param>
</generator>
</id>
<property name="name" column="PARTY_NM" />
I get the following on Hibernate start up:
nested exception is net.sf.hibernate.MappingException: could not instantiate id generator net.sf.hibernate.MappingException: could not instantiate id generator
at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:82) at
At first glance I would have thought that the class for this requested sequence generator was not found but 'sequence' is a built in generator and presumably is in the same jar file as the rest of Hibernate.
So, what is Hibernate telling me here? Something is wrong with my configuration but this mapping is almost exactly like the example in section 6.1.4.4.
Any help would be greatly appreciated.
My db is Oracle9i. I'm using Hibernate2.
|
|