ça bloque toujours dans la 2 eme ligne de ton code:
List<Resultat> result = (List<Resultat>)query.getResultList();
ça voudrait dire que la classe Resultat n'est pas bien définie, n'est ce pas?
Je te mets le code de la classe Resultat:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
public class Resultat {
public Report ReportName;
public Reportattributes RepAttributesName;
public Reportattributes RepAttribuesType;
public Resultat() {
}
public Resultat(Report ReportName, Reportattributes RepAttributesName, Reportattributes RepAttribuesType) {
this.ReportName = ReportName;
this.RepAttributesName = RepAttributesName;
this.RepAttribuesType = RepAttribuesType;
}
public Reportattributes getRepAttribuesType() {
return RepAttribuesType;
}
public void setRepAttribuesType(Reportattributes RepAttribuesType) {
this.RepAttribuesType = RepAttribuesType;
}
public Reportattributes getRepAttributesName() {
return RepAttributesName;
}
public void setRepAttributesName(Reportattributes RepAttributesName) {
this.RepAttributesName = RepAttributesName;
}
public Report getReportName() {
return ReportName;
}
public void setReportName(Report ReportName) {
this.ReportName = ReportName;
}
} |
C'est la bonne définition?
Merci.
Partager