![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
是夜色太荒芜
编程中最没用的东西是源代码,最有用的东西是算法和数据结构
展开
-
HibernateException异常:identifier of an instance of bean was altered from 1 to 1(持久化对象ID变更)
原文地址:http://blog.csdn.net/yaerfeng/article/details/7387871 javahibernateobject 今天算是遇到一个问题了。相当苦恼。 需求如下:有2个相同id的对象,但它们的值不同。其中一个对象要用到另一个对象的属性值。 由于在hibernate的sessionFactory().getSession中不能存在2个转载 2015-05-05 11:05:50 · 4600 阅读 · 0 评论 -
hibernate实现NULLS LAST
关于 hibernate 查询中实现order by的 NULLS LAST 和 NULLS FIRST 1:创建一个CustomNullsFirstInterceptor类 package com.jnpm.util;import org.apache.tools.ant.util.StringUtils; import org.hibernate.EmptyInterceptor;impor转载 2015-07-23 10:22:27 · 2813 阅读 · 0 评论