hibernate annotations @Entity hql "XX not mapped"
来源:互联网 发布:json文件示例 编辑:程序博客网 时间:2024/06/07 06:01
首先我在配置文件里面已经有配置
<property name="packagesToScan"><list><value>com.travelsky.ism.bean</value></list></property>
然后我在bean里面也指出了
@Entity
@Table(name="xxx")
再者我也没有写错对象名
所以不存在是这三种问题
让我抓狂。
最后发现是
@Id@GeneratedValue(strategy= GenerationType.IDENTITY)private long userid;/** * @return the userid */@Id@GeneratedValue(strategy= GenerationType.IDENTITY)public long getUserid() {return userid;}
去其一即可。
睡觉
- hibernate annotations @Entity hql "XX not mapped"
- org.hibernate.hql.ast.QuerySyntaxException:XX is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped !
- spring&org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped !
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
- org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped hibernate 注解出错
- Hibernate XX is not Mapped问题笔记
- hibernate eventes not mapped[HQL] exception
- hibernate eventes not mapped[HQL] exception
- hql not mapped hibernate语句查询错误
- hibernate错误 xx is not mapped [from xxx]
- org.hibernate.hql.ast.QuerySyntaxException is not mapped
- android BadTokenException之token is not valid
- AP、OS or Chips?
- 删除hbase表region块脚本
- 2012-04-15
- JNI异常的处理
- hibernate annotations @Entity hql "XX not mapped"
- Apache Shiro 架构
- hdu 3363 Ice-sugar Gourd
- PowerCmd 系统命令提示符增强助手
- Objective-C特点
- UIKit继承图
- iOS高效开发必备的10款Objective-C类库
- xcode升级后的 老工程编译问题
- iPhone编程规范