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

    howto? maually set PK / setID for new rows

    fbadt

      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?