Sample project on how to implement a generic dao class using JPA