
hibernate
气自华
寂寥无踪,纵然寂静,依然欢喜。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX]
http://669341085.iteye.com/blog/858572 org.hibernate.hql.ast.QuerySyntaxException: XX is not mapped [from XX] 解决办法: 1.看是否忘记将hibernate的映射文件添加到Hibernate.cfg.xml(使用Hibernate时)或者applicationContext.xm转载 2016-10-11 14:45:44 · 6126 阅读 · 0 评论 -
No identifier specified for entity:
原因:pojo实体bean缺少了主键 数据库表中没有建主健或者复合主键。后而建立复合主键,问题消失转载 2016-10-11 14:59:56 · 798 阅读 · 0 评论 -
hibernate常用API详解
http://blessht.iteye.com/blog/1327883 根据个人使用Hibernate的经验,介绍一下Hibernate的多种不同的查询和CUD操作,这些东西在日常开发中非常常用,希望对大家有所帮助。 以下示例均以两张表为例:member和userinfo,member帐号信息表外键关联userinfo用户基本信息表,主键自动生成即可 然后映射出转载 2017-03-30 15:04:02 · 430 阅读 · 0 评论