Modifying the entity context fields and methods
The next step is to remove some of the fields and methods related to entity context that Rational Application Developer generates. WebSphere Commerce provides its own definition of these fields and methods, in the ECEntityBean base class, which your new bean should use.
Before you begin
Procedure
- In the J2EE Hierarchy view, expand the WebSphereCommerceServerExtensionsData project.
- Expand Entity Beans, the yourNewBean bean, and then double-click the yourNewBeanBean class.
- In the Outline view:
- Right-click the myEntityCtx field and select Delete.
- Right-click the getEntityContext() method and select Delete.
- Right-click the setEntityContext(EntityContext) method and select Delete.
- Right-click the unsetEntityContext() method and select Delete.
- Save your work.
- Proceed to modifying the ejbLoad and ejbStore methods.