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