jpa errors fixed