checking in older work on JPA Query