Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 用户类型nullSafeGet和nullSafeSet迁移_Java_Hibernate - Fatal编程技术网

Java 用户类型nullSafeGet和nullSafeSet迁移

Java 用户类型nullSafeGet和nullSafeSet迁移,java,hibernate,Java,Hibernate,有人知道如何将代码从不推荐使用的Hibernate 3 nullSafeGet和nullSafeSet方法迁移到采用SessionImplementor参数的较新的Hibernate 4 nullSafeGet和nullSafeSet方法吗 我想我可以简单地从新方法调用旧的不推荐方法,忽略SessionImplementor参数。但我不确定这一选择的含义是什么。在第90页的《Hibernate食谱》一书中,作者忽略了SessionImplementor的论点 此更改的相关Hibernate文档

有人知道如何将代码从不推荐使用的Hibernate 3 nullSafeGet和nullSafeSet方法迁移到采用SessionImplementor参数的较新的Hibernate 4 nullSafeGet和nullSafeSet方法吗

我想我可以简单地从新方法调用旧的不推荐方法,忽略SessionImplementor参数。但我不确定这一选择的含义是什么。在第90页的《Hibernate食谱》一书中,作者忽略了SessionImplementor的论点

此更改的相关Hibernate文档

相同的忽略策略也应用于org.hibernate.type.EnumType。

相同的忽略策略也应用于org.hibernate.type.EnumType。

如果需要,SessionImplementor就在那里。否则忽略它

如果需要,SessionImplementor就在那里。否则就忽略它