-->
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.  [ 3 posts ] 
Author Message
 Post subject: ORA-02289: sequence does not exist
PostPosted: Sun Apr 01, 2007 2:49 pm 
Newbie

Joined: Sat Mar 31, 2007 10:06 pm
Posts: 6
If my config file says <generator class="native"/>, and I am using oracle 10g where I defined to create all primary keys from new sequence, how this error makes sense? Do I need to specify the seq name?

3:26:28,156 WARN JDBCExceptionReporter:77 - SQL Error: 2289, SQLState: 42000
13:26:28,171 ERROR JDBCExceptionReporter:78 - ORA-02289: sequence does not exist

Exception in thread "main" org.hibernate.exception.SQLGrammarException: could not get next sequence value

_________________
Its coming you will see.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 01, 2007 11:26 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi cool_guy,

try

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


person_id_sequence is sequence name.

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 7:53 am 
Regular
Regular

Joined: Mon Jun 12, 2006 5:33 am
Posts: 63
Or if you wanna stick with your native generator, just define a sequence called "hibernate_sequence" in your database.
Don't forget to rate if this helps


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.