UI: asks user about pizza
order, calls makeOrder() of
service layer
makeOrder runs a transaction
creating a new PizzaOrder and then
calling insertOrder() of DAO
Data Access Layer: Uses
ORM to persist new
PizzaOrder in DB
The Pizza Shop: Client-server
§
All on client system
§
A “rich client”
§
An ordinary (single-
threaded) Java/C#
program
DB Server
32