

SQL> select c_id from C_customer where c_credit = 'GC' and rownum < 10;
      C_ID
----------
     16570
     16615
     16690
     16693
     16744
     16824
      4947
      4987
      5019

9 rows selected.

From a browser selected customer with C_ID = 5019 and placed an order with Item:00001MITEM02584 Quantity:3. The browser displayed:
 
 Order processed. Order number is 6792001

Appserver Output:


04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:472): found SequenceSesHome interface
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:480): found CustomerEntHome interface
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:488): found LargeOrderSesHome interface
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:493): found ItemEntHomeLocal interface
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:498): found OrderLineEntHomeLocal interface
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbCreate(OrderCmp20EJB.java:107): ejbCreate 
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbCreate(OrderCmp20EJB.java:115): Atomicity Test (1,2,3): Order Id: 6792001
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbPostCreate(OrderCmp20EJB.java:149): Atomicity Test 3: OrderLineId: 1
04/08/17 21:27:59 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.getPriceWithDiscount(OrderCmp20EJB.java:520): getPriceWithDiscount 
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.getPercentDiscount(OrderCmp20EJB.java:592): getPercentDiscount
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.findCustomer(OrderCmp20EJB.java:540): findCustomer
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.checkCustomerCredit(OrderCmp20EJB.java:568): checkCustomerCredit 
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.checkForLargeOrders(OrderCmp20EJB.java:622): checkForLargeOrders 
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbStore(OrderCmp20EJB.java:417): ejbStore 
04/08/17 21:28:00 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbPassivate(OrderCmp20EJB.java:397): ejbPassivate 

The Order ID from the AppServer log is 6792001. Querying this orderID from
the Database gives:

SQL> select * from O_orders where o_id = 6792001;

      O_ID     O_C_ID   O_OL_CNT O_DISCOUNT    O_TOTAL   O_STATUS O_ENTRY_D     
---------- ---------- ---------- ---------- ---------- ---------- ---------     
O_SHIP_DA                                                                       
---------                                                                       
   6792001       5019          1         .2    3621.52          1 17-AUG-04     
                                                                                
                                                                                

SQL> select * from O_orderline where  ol_o_id = 6792001;

     OL_ID    OL_O_ID OL_I_ID             OL_QTY  OL_STATUS OL_SHIP_D           
---------- ---------- --------------- ---------- ---------- ---------           
         1    6792001 00001MITEM02584          3                                

SQL> spool off
