implement the jpapostrepository.