Java project study with JPA