convert to JPA