0 Replies Latest reply on Dec 22, 2004 11:18 PM by empty11

    [Error] could not get next sequence value

    empty11

      Dear.

      I use the @Id(generate = GeneratorType.AUTO) in the Entity Bean

      When inserting data to the table, there is an error as below.

      ------------------------------------------
      13:13:28,835 ERROR [JDBCExceptionReporter] could not get next sequence value [select hibernate_sequence.nextval from dual]
      java.sql.SQLException: ORA-02289: There is no Sequence

      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
      at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
      ..............

      ----------------------------

      How do I correct above error?

      Regards.

      # Rithie Koh