Creating a JPA layer using Java EE 6