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