Tutorials > Program model > Add a finder to an existing entity bean

< Previous | Next >


Generate deploy code and regenerate the OrderAccessBean

In this step, you generate deploy code and regenerate the OrderAccessBean so that the new finder method is added to the OrderAccessBean.


Procedure

  1. To generate deploy code:

    1. In the Enterprise Explorer view, navigate to Order-OrderCaptureData > Deployment Descriptor: Order-OrderCaptureData > Entity Beans > Order.

    2. Right-click on the Order bean and select Prepare for Deployment.

  2. To regenerate the OrderAccessBean:

    1. In the Enterprise Explorer view, navigate to Order-OrderCaptureData > Deployment Descriptor: Order-OrderCaptureData.

    2. Right-click on Deployment Descriptor: Order-OrderCaptureData and select Java EE > Access Beans > Regenerate Access Beans.

    3. In the Regenerate Access Beans window:

      1. Click Deselect All.

      2. Select OrderAccessBean.

      3. Click Finish.

  3. Examine the OrderAccessBean.java file to find the new findOrdersByTimePlaced method:

    1. In the Enterprise Explorer view, navigate to Order-OrderCaptureData > ejbModule > com.ibm.commerce.order.objects > OrderAccessBean.java.

    2. Double-click the OrderAccessBean.java file to view its source.

    3. In the outline view, find the findOrdersByTimePlaced(Long) method.

< Previous | Next >


+

Search Tips   |   Advanced Search