Closed daidge closed 5 years ago
Could you please provide the Query and the class please ?
public class Member { private String NoBenef; private String Name1; private String Name2; private String Status;
final String sqlFindByIdNumber = "SELECT TOP 1 t1.NoBenef, t1.Name1, t1.Name2, t1.Status " + "from table1 t1 inner join table2 t2 on t1.BenefID=t2.BenefID " + "where IdNumber = :IdNumber ";
What 's wrong ?
members = con.createQuery(sqlFindByIdNumber).addParameter("IdNumber", idnumber).executeAndFetch(Member.class);