1 | 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. |
2 | unsetEntityContext() method should be used by an instance to release any resources that has been used by the instance. |
3 | ejbCreate() inserts a record representing the entity into the database. It returns a primary key for this entity. |
4 | For each ejbCreate() method, a bean has to implement ejbPostCreate() method with the same input parameters , and void return type instead of primary key. |