aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Primiary Key Field
Similar Threads
[Newb] How to reuse attributes
The XMLQuery syntax problem
Linking two tables in JDBC
Composite Key Mapping with OneToMany does not work
How to read XML in a Message Driven Bean?