| Author |
SQLGrammarException: could not get next sequence value
|
Jian Yi
Ranch Hand
Joined: Feb 01, 2002
Posts: 127
|
|
Hi everyone, I'm new to Hibernate. I tried to use the examples in book 'Hibernate Quickly', but using Oracle instead of MySQL. However I got the error:
|
 |
Jian Yi
Ranch Hand
Joined: Feb 01, 2002
Posts: 127
|
|
Oops, sent out by mistake. I mean to add the code and table here: 1. Event.java: 2. Event mapping file: 3. events table: Anything else I should post here to be helpful to answer my question? Thanks! Jenny
|
 |
Jian Yi
Ranch Hand
Joined: Feb 01, 2002
Posts: 127
|
|
Here is the whole error message:
|
 |
Jian Yi
Ranch Hand
Joined: Feb 01, 2002
Posts: 127
|
|
|
Never mind. I got it working.
|
 |
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17234
|
posted

0
|
And was it because it didn't have the sequence name in your mapping? Mark
|
Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
|
 |
 |
|
|
subject: SQLGrammarException: could not get next sequence value
|
|
|