Modifying the ejbLoad and ejbStore methods
When an entity bean is created, Rational Application Developer automatically generates a rudimentary ejbLoad method and a rudimentary ejbStore method, which you can customize in the course of your development. At this time, you will ensure that these methods implement the default behavior defined in the com.ibm.commerce.base.objects.ECEntityBean abstract class, which your entity bean extends.Prerequisite You have modified the entity context fields and methods of the bean.
- In the J2EE Hierarchy view, double-click the Y ourNewBeanBean class to open it and view its source code.
- Locate the definition of the ejbLoad method.
- Add the following line at the beginning of the method body:
super.ejbLoad();- Locate the definition of the ejbStore method.
- Add the following line at the end of the method body:
super.ejbStore();- Save your changes.
- Proceed to adding new finders.
Previous topic:Modifying the entity context fields and methods
Next topic:Related tasks
Create new entity beans
Create a new CMP entity bean