2016年5月16日

Users is not mapped(Hibernate实体类采用注解)

摘要: 今天做简单的登陆验证web应用时,用HQL语句查询数据表时 总是出现Users is not mapped [from Users u where u.username=? and u.password=? ]错误; 后面在HQL语句上把数据库表映射的实体类加上包名 (形如yii.entity.Us 阅读全文

posted @ 2016-05-16 01:49 Eternalisland 阅读(2250) 评论(0) 推荐(0) 编辑

导航