0 Replies Latest reply on Oct 16, 2006 5:05 PM by F B

    howto? maually set PK / setID for new rows

    F B Newbie

      For our project, there is the need to manually call the setID for inserted rows. How can this be done? Especially staying within the EJB3 spec/API's

      Is it as simple as new MyObject
      myObject.setID(4);
      em.persist(myObject)?

      What should be used for GenerationType. in this case?