Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!