transition to JPA