Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic question regarding Hibernate, Oracle and Sequence Numbers

 
K DeLucia
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm just starting to try using Hibernate. I'm following a basic tutorial to map a couple of fields to a database table. I have two columns in the table. When I attempt to update the table, I get this error:

java.sql.SQLSyntaxErrorException: ORA-02289: sequence does not exist

My table does not have a sequence, and I don't particularly want it to. Is this required? Do I have to add a sequence to my Oracle table in order to use Hibernate with Oracle? Or is there some way I can do the insert/update without needing a sequence?

Thanks!
 
K DeLucia
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. I didn't understand the generator element. Got it now. Gotta go RTFM!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic