![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
思知
这个作者很懒,什么都没留下…
展开
-
hibernate注解
JPA:Java Persistence API类级别注解: Entity表明一个实体,name为表名称,catalog:mysql不支持,schema数据库名称,uniqueConstraints指定字段唯一 @Entity @Table(name=”student”,catalog=”“,schema=”hibernate”,uniqueConstraints={@原创 2016-05-10 17:57:37 · 786 阅读 · 0 评论 -
HQL总结
package com.HQL;import java.util.List;import java.util.Map;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;原创 2016-05-10 17:50:09 · 617 阅读 · 0 评论 -
org.hibernate.NonUniqueObjectException: A different object with the same identifier value was alread
org.hibernate.NonUniqueObjectException: A different object with the same identifier value was already associated with the session : [com.entity.User#4]原创 2016-06-03 03:44:28 · 464 阅读 · 0 评论