Updated JPA example.