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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Primiary Key Field" Watch "Primiary Key Field" New topic
Author

Primiary Key Field

hiren dossani
Greenhorn

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.
--
hiren
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Primiary Key Field
 
Similar Threads
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
The XMLQuery syntax problem