Design of JPA class