Remove JPA dependencies

Fixes #886