我已经遇到此问题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