File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Primiary Key Field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Primiary Key Field" Watch "Primiary Key Field" New topic

Primiary Key Field

hiren dossani

Joined: May 25, 2002
Posts: 2
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.
I agree. Here's the link:
subject: Primiary Key Field
It's not a secret anymore!