Here is a checklist for the files that you will need to add to the starting project to complete milestone 1:
Four JSP pages:
A JSP fragment for the navigation menu.
Three servlet classes:
A JDBI-based persistent DAO for managing product domain objects. The interface and collections-based version of this class already exist. You will need to add:
ProductDAO
interface.JdbiDaoFactory
class that contains a getProductDAO
method that returns instances of the JDBI DAO as shown in this lab.A customer DAO for managing customer domain objects. There will be three files for this DAO:
Map
for this DAO).A JDBI-based persistent DAO interface.
This DAO should contain four methods:
Customer
.username
and password
matches an existing customer.username
.You should also add a getCustomerDAO
method to the existing JdbiDaoFactory
class that returns an instance of the customer JDBI DAO as shown in this lab. Copy and adapt the existing getProductDAO
method.
Two DAO test classes:
An SQL file containing the database schema. This should contain create table
statements for both the customer
and product
tables.
not null
contraints to all fields that are important.If we have missed something that should be on this list then please let us know.