JPA Design