setEntityContext() method can be used by an instance to allocate any resource that is going to be used during the life time of this instance. |
unsetEntityContext() method should be used by an instance to release any resources that has been used by the instance. |
ejbCreate() inserts a record representing the entity into the database. It returns a primary key for this entity. |
For each ejbCreate() method, a bean has to implement ejbPostCreate() method with the same input parameters , and void return type instead of primary key. |