1 Reply Latest reply on Aug 14, 2007 2:02 AM by Nicklas Karlsson

    Auto Generated Value for primary key in oracle.

    Nagaraju Voolla Newbie

      Hi,

      I am using JPA @ManyToMany annotaion between two tables(user and group). How could I get an auto generated value for primary key in table group, when I add groups to user. I am using oracle 9i database.

      Nagaraju

        • 1. Re: Auto Generated Value for primary key in oracle.
          Nicklas Karlsson Master

           

          "voollanagaraju" wrote:
          Hi,

          I am using JPA @ManyToMany annotaion between two tables(user and group). How could I get an auto generated value for primary key in table group, when I add groups to user. I am using oracle 9i database.

          Nagaraju


          http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#tutorial-associations-bidirectional

          The Hibernate forums might be a better place to look for help on issues like this.