Generic Hibernate based repository.