What is the purpose of the Java Pet Store Demos Data Access Objects (DAOs) and why are all SQL statements included there?
A. They are part of the persistence strategy of Java Pet Store Demo. The preferred approach for persistence is container-managed persistence (CMP). However, in certain cases, bean-managed persistence (BMP) is a better fit and hence the Java Pet Store Demo uses DAOs to implement them. See the Data Access Object pattern.