jpa config and validation