4 Replies Latest reply on Mar 20, 2002 9:03 PM by Enrique Rodriguez

    Auto numbers / DB Sequence in EJB

    Ganesh Pandian Newbie

      I have a problem with Sequence numbers in EJB. Assume that my table has auto generated sequence as Primary Key. When I am creating a bean, I could not give the value for that field in my bean. It will be got from the DB after inserting the record. How to manage this situation ? Will my EJBean(CMP) insert the record without primary key field ? Any code samples ?