
SQL> select c_id from c_customer where c_credit = 'GC' and rownum < 10;

      C_ID                                                                      
----------                                                                      
         1                                                                      
         2                                                                      
         3                                                                      
         4                                                                      
         5                                                                      
         6                                                                      
         7                                                                      
         8                                                                      
         9                                                                      

9 rows selected.

From a browser selected customer with C_ID = 1 and placed an order with Item:00001MITEM00003 Quantity:1. The browser displayed:

 Order processed. Order number is 5477501

Appserver Output:


04/07/29 23:13:24 Oracle Application Server Containers for J2EE 10g (9.0.4.0.1) initialized
04/07/29 23:17:06 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:472): found SequenceSesHome interface
04/07/29 23:17:06 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:480): found CustomerEntHome interface
04/07/29 23:17:06 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:488): found LargeOrderSesHome interface
04/07/29 23:17:06 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:493): found ItemEntHomeLocal interface
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.setEntityContext(OrderCmp20EJB.java:498): found OrderLineEntHomeLocal interface
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbCreate(OrderCmp20EJB.java:107): ejbCreate 
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbCreate(OrderCmp20EJB.java:115): Atomicity Test (1,2,3): Order Id: 5477501
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbPostCreate(OrderCmp20EJB.java:149): Atomicity Test 3: OrderLineId: 1
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.getPriceWithDiscount(OrderCmp20EJB.java:520): getPriceWithDiscount 
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.getPercentDiscount(OrderCmp20EJB.java:592): getPercentDiscount
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.findCustomer(OrderCmp20EJB.java:540): findCustomer
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.checkCustomerCredit(OrderCmp20EJB.java:568): checkCustomerCredit 
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.checkForLargeOrders(OrderCmp20EJB.java:622): checkForLargeOrders 
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbStore(OrderCmp20EJB.java:417): ejbStore 
04/07/29 23:17:07 OrderCmp20EJB_PersistenceManager16 at org.spec.jappserver.orders.orderent.ejb.OrderCmp20EJB.ejbPassivate(OrderCmp20EJB.java:397): ejbPassivate 

The Order ID from the above output is: 5477501

SQL> select * from O_orders where o_id = 5477501;

      O_ID     O_C_ID   O_OL_CNT O_DISCOUNT    O_TOTAL   O_STATUS O_ENTRY_D     
---------- ---------- ---------- ---------- ---------- ---------- ---------     
O_SHIP_DA                                                                       
---------                                                                       
   5477501          1          1          0     531.73          1 29-JUL-04     
                                                                                
                                                                                

SQL> select * from O_orderline where ol_o_id = 5477501;

     OL_ID    OL_O_ID OL_I_ID             OL_QTY  OL_STATUS OL_SHIP_D           
---------- ---------- --------------- ---------- ---------- ---------           
         1    5477501 00001MITEM00003          1                                


