-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: could not instantiate id generator
PostPosted: Tue Aug 30, 2005 5:24 pm 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.