关于hibernate的is not mapped问题
来源:互联网 发布:生产制造业erp软件 编辑:程序博客网 时间:2024/05/20 22:30
近日在开发一个小系统时,出现了picture is not mapped[from picture where id = 8] 的问题。
以前都是手动编写hibernate配置文件,这是第一次使用MyEclipse自动生成POJO类和对应的hibernate配置文件,却出现了如上问题。
后来在网上查了些资料发现,问题出在了hql语句内。
我的hql语句:hql = "from picture where id"+picID;
按理来说,是没问题的,语句的解释为:从picture表中查询出id = picID的记录,但是问题就在于以往在自己写配置文件的时候,习惯性地在Picture.hbm.xml文件中,
<class name=”com.simpleton.myuniversity.domain.Picture” table=”picture” > …. </class>
把name和table写成一个名字,而hql语句是取name来表示该表,而不是用table.- 关于hibernate的is not mapped问题
- hibernate:XXX is not mapped问题的解决
- Hibernate XX is not Mapped问题笔记
- hibernate:XXX is not mapped问题
- hibernate 出现 is not mapped 问题
- Hibernate Is Not Mapped
- (Hibernate) is not mapped
- Hibernate - is not mapped
- is not mapped 问题
- hibernate中could not resolve property和is not mapped的问题
- Hibernate Class Is Not Mapped
- Hibernate Class Is Not Mapped ?
- Hibernate Class Is Not Mapped
- hibernate XXX is not mapped
- Hibernate is not mapped [from
- hibernate 出现***is not mapped
- Hibernate: user is not mapped
- 关于Hibernate报错 “table” is not mapped
- PCI设备BAR空间的初始化
- scheduler_tick函数
- 基于DP法的水电站中长期优化调度
- hibernate配置入门
- uname(1)的基本实现(C语言)
- 关于hibernate的is not mapped问题
- 【configuration】Eclipse使用总结
- 流行软件名称的标准发音:nagios,nginx,lucene,mahout,hadoop,cacti,ceph,selenium
- 优化php性能的五个实用技巧:
- Android Camera 使用小结
- Boost Thread学习笔记
- 【转载】2010 BlackHat - 即时恶意软件分析和控制方案
- PCI 中的base address register(转)
- 使用REGEXP_COUNT函数统计字符串出现的次数