[英]Hibernate Migration from 4.3.x to 5.x for method org.hibernate.cache.spi.GeneralDataRegion.get(Object key)
In Hibernate 4.3.x, there is a method在 Hibernate 4.3.x 中,有一个方法
org.hibernate.cache.spi.GeneralDataRegion.get(Object key)
But in Hibernate 5.x, this method signature is changed to但是在 Hibernate 5.x 中,这个方法签名改为
org.hibernate.cache.spi.GeneralDataRegion.get(SessionImplementor session, Object key)
Similarly new put method signature in Hibernate-5 is as follows :类似地,Hibernate-5 中新的 put 方法签名如下:
public void put(SessionImplementor session, Object key, Object value)
Here what is SessionImplementor class and how to get its object?这里什么是 SessionImplementor 类以及如何获取它的对象? ie, What will be the code substitution in Hibernate-5?
即,Hibernate-5 中的代码替换是什么?
Please help on this migration issue.请帮助解决此迁移问题。 Thanks in advanced.
提前致谢。
我认为以下行给出了 SessionImplementor 对象:
SessionImplementor hibernateSession=((SessionImplementor)sessionFactory.getCurrentSession());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.