|
-
( CMP & AutoIncreament PK field ) ?
Hello ,
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
Soroush
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks