StringBuffer hql = new StringBuffer("from student where 1=1 ");
//报出 student is not mapped [from student]
//解决 将from student 改为 fromStudent
//原因 映射的不是数据库表 而是java类
映射的 java类名和属性名,而不是实际的表名和列名
StringBuffer hql = new StringBuffer("from student where 1=1 ");
//报出 student is not mapped [from student]
//解决 将from student 改为 fromStudent
//原因 映射的不是数据库表 而是java类
映射的 java类名和属性名,而不是实际的表名和列名