Query query=entityManager.createQuery("Select e from StudentQualification e where e.student=:id");
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
private Integer id;
@ManyToOne
@JoinColumn(name="student_id")
private Student student;
@ManyToOne
@JoinColumn(name="qualification_type")
private QualificationType qualificationType;
@Column(name="obtain_marks")
private Integer obtainMarks;
@Column(name="total_marks")
private Integer totalMarks;
@Column(name="institute")
private String institute;
@Column(name="year_of_completion")
Error on query excution: Parameter value [1] did not match expected type [com.autosoft.fortune.model.Student (n/a)] my query is above and after that my class attribute what should i do
Aucun commentaire:
Enregistrer un commentaire