Used JPA better