-->
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.  [ 2 posts ] 
Author Message
 Post subject: oracle sequence and hibernate 2.1
PostPosted: Mon Feb 21, 2005 5:56 pm 
Newbie

Joined: Mon Feb 16, 2004 11:28 pm
Posts: 16
When I attempt to run my unit test im getting the following error

DEBUG - BatcherImpl.log(229) | select hibernate_sequence.nextval from dual
DEBUG - BatcherImpl.getPreparedStatement(252) | preparing statement
DEBUG - JDBCExceptionReporter.logExceptions(49) | SQL Exception
java.sql.SQLException: ORA-02289: sequence does not exist


How do I not use the default sequence (hibernate_sequence).

In my mapping files I have the following, so it should be working right?

<generator class="sequence">
<param name="sequence">id_sequence</param>
</generator>

My sequence is called "id_sequence"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 21, 2005 7:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The snippit looks right to me. Not sure whats going on. Need to provide more information, eg, version of hibernate, more complete mapping document etc.


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

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.