Deleted jpa deprecates, added GenericDao, made DAO refactoring.