Why is ejbFindByPrimaryKey mandatory?- Primary Keys are used to uniquely identify the objects from a database.
- The ejbFindByPrimaryKey method is used to locate and load an entity bean into the container.
- The client can be assured to that they can retrieve the bean without having to create a new one, if they have a primary key associated.
NOTE: The creation of new data would threaten the integrity of the EJBs due to duplication.
|