Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Oracle Generator problem

 
J Bugaam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Hibernate 3.0 and Oracle 10g. When ever I run the code to insert a record into the table I get this error :
(I have tried native, HiLo, sequence.... nothing works) Any help will be greatly appreciated.


Exception in thread "main" org.hibernate.MappingException: could not instantiate id generator
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:92)
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:151)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:178)
at org.hibernate.cfg.Configuration.buildSessionFactory



<class name="AppsUser" table="APPS_USER">
<id name="appsUserId" column="APPS_USER_ID" type="java.lang.Long">
<generator class="native">
</generator>
</id>
........
 
Dave Salter
Ranch Hand
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have your dialect set to?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic