facebook

Hibernate Oracle sequence generator!

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #270844 Reply

    I have one column hold primary key, we need to put every time uniqe value for it, i have one oracle sequence when we execute that sequence it generate different value from previously generated then we insert that value into that table.

    I saw one example some thing like this

    <id name=”userId” type=”integer” column=”USER_ID” >
    <generator class=”sequence”>
    <param name=”sequence”>MD_USER_SEQ</param>
    </generator>
    </id>

    which i guess automaticaly call sequence inside oracle and assign value to the userid.
    but we have t do it manualy if i m not wrong,
    while reverse enginering i saw option to configure for column but do not know how to use.

    hope nnow you understand the question clearly.

    Thanks
    Faisal khan

    #270845 Reply

    hoe you understand my request now.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate Oracle sequence generator!

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