0

我试图更新我的课程以添加一个名为 email 的新属性,当我测试它时,我收到了这个错误:

javax.el.PropertyNotFoundException: /pagename.xhtml @30,121 value="#{department.department.email}": The class 'classaddress.Department' does not have the property 'email'.

但在课堂上一切正常。我放了getter和setter,试图清理glassfish上所有生成的文件,重新启动电脑,祈祷等等。没有任何效果。

我正在使用带有 Glassfish、Eclipse 和 Postgres 的 Mac Mini。

我在其他电脑上做了同样的改变,一切都很好。

只是信息:

财产声明:

@Column(name = "email", unique = true)
private String email;

获取器和设置器:

/**
 * @return the email
 */
public String getEmail() {
    return email;
}

/**
 * @param email the email to set
 */
public void setEmail(String email) {
    this.email = email;
}
4

0 回答 0