org.springframework.orm.hibernate3.HibernateQueryException: teacherscore is not mapped
来源:互联网 发布:优化网站实例 编辑:程序博客网 时间:2024/06/04 19:58
真是恨死它了,烦半天!!!!
开始还以为配置出错了找了半天teacherscore .hbm.xml没错,dao也没错,起初不停地部署运行然后在dao里面测试,还好找到问题了,是出现在hql语句上!!!!!
public List<Teacherscore> findAll() {
String queryString = "from teacherscore";
return (List<Teacherscore>)hibernateTemplate.find(queryString);
}
public static void main(String[] args) throws Exception {
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
TeacherscoreDAO dao = (TeacherscoreDAO)ac.getBean("teacherscoreDAO");
System.out.println("00");
List<Teacherscore> s = dao.findAll();
System.out.println(s);
}
就是出在那个小写的t上改成大写就行了。。。。。。
- org.springframework.orm.hibernate3.HibernateQueryException: teacherscore is not mapped
- 十二、org.springframework.orm.hibernate3.HibernateQueryException: Book is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException:表名 is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException: XXX is not mapped
- org.springframework.orm.hibernate3.HibernateQueryException: XXX is not mapped解决方案
- 异常记录:org.springframework.orm.hibernate3.HibernateQueryException:PDIC_USER is not mapped [from PDIC_USER p where 1=1 ]; nested ex
- org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException:
- org.springframework.orm.hibernate3.HibernateQueryException 问题
- SSH org.springframework.orm.hibernate3.HibernateQueryException
- 错误提示:org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: *
- org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: XXX的解决方案
- org.springframework.orm.hibernate3.LocalSessionFactoryBean not found
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: * near line 1, column
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: 29 near line 1, column
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: xx near line 1, colum
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: where near line 1, col
- org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: 29 near line 1, column
- org.springframework.orm.hibernate3
- Android系统服务启动分析-binder
- Flex 基础学习笔记
- struts2中result的各种type的作用
- java 策略模式
- 深入探讨电容的种类和作用
- org.springframework.orm.hibernate3.HibernateQueryException: teacherscore is not mapped
- 使用Sqlserver事务发布实现数据同步
- 单文档之于工具条消息
- js 将json字符串转换为json对象
- vlan的划分方式
- Js Json对象与String互转
- DataColumn
- 阅读了rails中使用bootstrap相关文章的小结
- 根据时间服务器校正系统时间-对时