convert to jpa