So
far, entity objects carry data to/from database
i.e,
represent persistent data
But
objects should have related behavior too
No
problem: add methods to entity classes
Suppose
app needs to compute optimal ordering of
toppings for building pizza
List<Topping>
x.getToppingsInBuildOrder()
This
should be method of PizzaOrder, an entity