aspose file tools*
The moose likes JDBC and the fly likes Primary Key and Primary Key Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Primary Key and Primary Key Class" Watch "Primary Key and Primary Key Class" New topic
Author

Primary Key and Primary Key Class

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Is there a one-to-one direct relation between the primary key of a table in the database and the primary key class in the Enterprise Java Bean?
Or, if I re-phrase my question -- How do the primay key of a table in the database differ from the primary key class in the EJB?
Tony Huynh
Greenhorn

Joined: Aug 21, 2001
Posts: 7
There isn't much difference. If you look closely at the EJB Primary Key Class it should be of the same datatype as your Primary Key in your Database. I suggest you got to www.ibm.com find the developer's section. And look up Visual Age for Java EJBs...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Primary Key and Primary Key Class