fix compilation error with JPA project