common repository with JPA