facebook

Mapping id in hbm.xml file

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #276653 Reply

    odelyag
    Member

    Hello,

    I assigned the id generator to be of type
    <generator class=”sequence”>
    <param name=”sequence”>obituary_sequence</param>
    </generator>

    But get an error:
    could not get next sequence value.

    I m using Oracle 9.
    Do I have to declare something else in the table itself? or anywhere else in the code?

    #276657 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development

    #276675 Reply

    odelyag
    Member

    Hi,
    I solved the problem.
    I didn’t create the seqeunce in the table.
    After adding:
    CREATE SEQUENCE obituary_sequence
    INCREMENT BY 1
    START WITH 100

    it works fine.

    My thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Mapping id in hbm.xml file

You must be logged in to post in the forum log in