JPA Controllers code review