There are 2 branches:
- simple focuses on most common jdbc usage patterns, places that can be improved are commented
- improved contains possible improvements over simple example
Start with UserDAO interface.
There are 2 implementations of UserDAO:
See:
- UserDAOTest to find how to test UserDAO implementations using in-memory database
- Main class
To run Main class you need Postgresql installed. After installation run prepare-db-as-postgres.sh to create tables and users.