Class HibernateProxySerializer.ProxySessionReader
- java.lang.Object
-
- com.fasterxml.jackson.datatype.hibernate5.HibernateProxySerializer.ProxySessionReader
-
- Enclosing class:
- HibernateProxySerializer
protected static class HibernateProxySerializer.ProxySessionReader extends Object
Hibernate 5.2 broke abi compatibility of org.hibernate.proxy.LazyInitializer.getSession() The api contract changed from org.hibernate.proxy.LazyInitializer.getSession()Lorg.hibernate.engine.spi.SessionImplementor; to org.hibernate.proxy.LazyInitializer.getSession()Lorg.hibernate.engine.spi.SharedSessionContractImplementor On hibernate 5.2 the interface SessionImplementor extends SharedSessionContractImplementor. And an instance of org.hibernate.internal.SessionImpl is returned from getSession().
-
-
Field Summary
Fields Modifier and Type Field Description protected static MethodlazyInitializerGetSessionMethodThe getSession method must be executed using reflection for compatibility purpose.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProxySessionReader()
-
-
-
Field Detail
-
lazyInitializerGetSessionMethod
protected static final Method lazyInitializerGetSessionMethod
The getSession method must be executed using reflection for compatibility purpose. For efficiency keep the method cached.
-
-