我试图在Play中更新实体,但是当我实际调用update时,我会收到一个未定义异常的属性。以下是模型定义:
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public long parserId;
更新电话
parserToUpdate.update(parserToUpdate.parserId);
错误
[error] play - Cannot invoke the action, eventually got an error: org.springframework.beans.InvalidPropertyException: Invalid property 'parserId' of bean class [models.Parser]: No property 'parserId' found