jpa repository refactor