Hibernate aliastobean
Posted
by cometta
on Stack Overflow
See other posts from Stack Overflow
or by cometta
Published on 2010-03-15T04:33:14Z
Indexed on
2010/03/15
4:39 UTC
Read the original article
Hit count: 514
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 changed to small letter, it doesnt work. can anyone explain why must be in capital letter?
© Stack Overflow or respective owner