• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primiary Key Field

 
hiren dossani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The customer table has a 'customerID' field which is an auto-incremented field. So, I use 'default' value to insert a customer record in table using db2 v8.1 database.
Now I want to create a CMP Customer entity bean, with the properties as id, firstname, lastname, username, password, email, etc.
Not sure, if the mapping of id property with customerID column in database will work. Also, how to implement the create and findByPrimarykey methods ?
Thanks for all your help.
--
hiren
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic