Exercises using the java persistence API