Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the purpose of the Java Pet Store Demos Data Access Objects (DAOs) and why are all SQL statements included there?

0
Posted

What is the purpose of the Java Pet Store Demos Data Access Objects (DAOs) and why are all SQL statements included there?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123