File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Primary Key and Primary Key Class

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic