Fixed build without JPA support