Hibernate HQL语句 未映射 is not mapped

StringBuffer hql = new StringBuffer("from Student where 1=1 ");


 //使用"from student" 报出 student is not mapped [from student]
//原因 映射的不是数据库表 而是java类

映射的 java类名和属性名,而不是实际的表名和列名

猜你喜欢

转载自blog.csdn.net/hanglife/article/details/86568605