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.
Before you begin
Procedure
- In the J2EE Hierarchy view, double-click the YourNewBeanBean 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.