EJB ejbFindByPrimaryKey: Why is ejbFindByPrimaryKey mandatory?

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.
What is session facade?
What is session facade? - Session Façade is one of the design pattern. It is utilized in developing enterprise applications frequently.....
EJB CMP and BMP: What is the difference between CMP and BMP?
EJB CMP and BMP - JDBC Net pure Java driver(Type IV) is the fastest driver because it converts the jdbc calls to network protocol used by DBMS Server...
EJB-isolation-levels.aspx
EJB transaction isolation levels - Transaction_read_uncommitted- Allows a method to read uncommitted data from a DB(fast but not wise)....
Post your comment