Query query = getHibernateTemplate().getSessionFactory().getCurrentSession().createSQLQuery(
"select proj_employee.employee_no as employeeNo, ...
.setResultTransformer(Transformers.aliasToBean(User.class));
Inside User.class
does the property employeNo need to be in capital letter?
private String EMPLOYEENO;
//get/set for EMPLOYEENO
If I change the EMPLOYEENO
to small letter, it doesn't work. Can anyone explain why the variable name must be all capital letters?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…