The Artima Developer Community
Sponsored Link

Java Answers Forum
why do we use a primary key for the entity bean?

1 reply on 1 page. Most recent reply: Sep 4, 2002 12:34 AM by Javed

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
senthil

Posts: 23
Nickname: rickk84
Registered: Aug, 2002

why do we use a primary key for the entity bean? Posted: Sep 3, 2002 4:33 AM
Reply to this message Reply
Advertisement
why do we use a primary key for the entity bean?


Javed

Posts: 15
Nickname: javedm
Registered: Aug, 2002

Re: why do we use a primary key for the entity bean? Posted: Sep 4, 2002 12:34 AM
Reply to this message Reply
Entity bean usually represents a row in the database. To identify the unique row, the best way is to identify it by its primary key.

EJB Specification mandates to have a PK class to identify which row's data is to be loaded into the EJBObject.

Flat View: This topic has 1 reply on 1 page
Topic: Animation Previous Topic   Next Topic Topic: simple JSP program, error 500 file not found problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use