找不到属性[SpecialtyName]

时间:2019-06-25 13:58:01

标签: java hibernate

我已经遇到此问题Property [SpecialtyName] not found,但是我确定我的模型正确并且具有此属性SpecialtyName 到底发生了什么,这不是服务器中的问题还是什么?

我的专业实体看起来像

@Id
@GeneratedValue(strategy=GenerationType.IDENTITY) 
@Column(name="idSpecialty")
private int idSpecialty;

@Column(name="specialtyTitle")
private String specialtyTitle;

@Column(name="SpecialtyName")
public String SpecialtyName;

@Column(name="numberOfSeats")
private int numberOfSeats;


@Column(name="numberOfSeatsTemporary")
private int numberOfSeatsTemporary;


@ManyToOne( cascade= {CascadeType.DETACH,CascadeType.MERGE,CascadeType.PERSIST,CascadeType.REFRESH},
        fetch=FetchType.EAGER)
@JoinColumn(name="Admin_idAdmin")
private Admin admin;

// getters and setters contain getSpecialtyName and setSpecialtyName

0 个答案:

没有答案