This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
The XMLQuery syntax problem
Composite Key Mapping with OneToMany does not work
How to read XML in a Message Driven Bean?
Linking two tables in JDBC
[Newb] How to reuse attributes