What is the need of primary key class in BMP

Questions by vemodharak   answers by vemodharak

Showing Answers 1 - 1 of 1 Answers

Chris Thompson

  • Sep 18th, 2005
 

The primary key is the only way the container has of distinguishing one bean from another. This is particularly important for pooling, where the container uses the primary key to determine if the data you need already exists in the bean pool. To quote Roman in Mastering EJBs (3rd ed.), "Finder methods locate one or more existing entity bean data instances in the underlying persistent store. You must define at least one finder method -- ejbFindByPrimaryKey()."

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions