( CMP & AutoIncreament PK field ) ?
I have a db table as follows :
( ProductId int primary key AutoIncreament ,
ProductName varchar(50) )
So When I want to insert a row (in the DB) I have to just mention to
"ProductName" field , like " insert into tbl1 values ( 'pro1' ) " because
'ProductId' field is autoincreament .
- I want to use CMP , when i generate related CMP using JBuilder5.0
I have to introduce 'ProductId' fields as PK , but ejbCreate() try to set
data for 'ProductId' field which is not suitable for me , and an error will
be generated ...
- What is the solution ?
Thanks in advance
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center