Before moving on to test buying a car, let's recap what we did in Iteration 3:
Upgraded the web site:
Added a "Buy Car" link to the Car Inventory page (carList.jsp).
Added a "Buy Car" action to the Controller Servlet.
Modified the Persistence Tier:
Created an ACCOUNTING table.
Wrote a HibernateAccountingDTO.
Developed a HibernateAccountingDAO.
Changed the Session Bean:
Added a new buyCar( ) method to the InventoryFacadeBean that encapsulated a Container-Managed Transaction that involved the CAR and ACCOUNTING tables.