enable JPA
add integration test