2 Replies Latest reply on Aug 18, 2003 5:09 PM by samledu

    cmp 2.0 how to persistence a SQL Server's IDENTITY column?

    yongjunzheng Newbie

      I have an SQL Server's Table as follow:
      create table DB_Bank_AccountInfo (
      AccountNo int identity(10000000,1) not null,
      AccounType int null,
      Owner varchar(20) null,
      CreateDate datetime null,
      PaymentPwd varchar(8) null,
      Balance decimal(18,2) null,
      constraint PK_DB_BANK_ACCOUNTINFO primary key (AccountNo)

      How use cmp 2.0 entity bean to persistence the AccountNo field? Because the AccountNo field is identity column is an automatic primary key, I don't know how to persistence this field. Can anybody give me a hand? Thank you in advance!