Simple example using Java Persistence API.