Yesterday, you saw the interfaces and classes in the javax.ejb package that related to Session beans. Figure 6.2 shows the interfaces and classes relevant to Entity beans.
As you can see, many of the supporting classes are common, which is good news because that means there's less to learn. The principle differences are as follows:
The Entity bean implements javax.ejb.EntityBean rather than javax.ejb.SessionBean, so there is a different lifecycle.
The Entity bean is initialized with an EntityContext rather than a SessionContext. An ...