| I have code (hibername 3.2) with spring
 public class AccessDBSql extends HibernateDaoSupport
 {
 public AccessDBSql()
 {
 }
 
 public List selectListEducation()
 {
 
 String sql =
 "select "+
 "edu.EMPLID as {edu.EMPLID}, "+
 "edu.EDUCATION_ID as {edu.EDUCATION_ID}, "+
 "edu.BEGIN_YEAR as {edu.BEGIN_YEAR}, "+
 "edu.END_YEAR as {edu.END_YEAR}, "+
 "edu.INSTITUTION as {edu.INSTITUTION}, "+
 "edu.LOCATION as {edu.LOCATION}, "+
 "edu.COUNTRY as {edu.COUNTRY}, "+
 "edu.DEGREE as {edu.DEGREE}, "+
 "edu.STUDY_FIELD as {edu.STUDY_FIELD}, "+
 "edu.CHANGEUSER as {edu.CHANGEUSER}, "+
 "edu.CHANGEDT  as {edu.CHANGEDT} "+
 " from education edu "+
 " order by 2";
 
 SessionFactory sf = getHibernateTemplate().getSessionFactory();
 Session session = sf.getCurrentSession();
 //Session session = getHibernateTemplate().getSession();
 List list = session.createSQLQuery(sql)
 .addEntity("edu", Education.class).list();
 return list;
 }
 }
 
 and I got the following errors:
 
 
 [java] org.hibernate.MappingException: Unknown entity: domain.Education
 
 There is not compile error. This is runtime error
 
 -Henry
 
 
 |