implement JPA mappings