Class 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 Detail

      • lazyInitializerGetSessionMethod

        protected static final Method lazyInitializerGetSessionMethod
        The getSession method must be executed using reflection for compatibility purpose. For efficiency keep the method cached.
    • Constructor Detail

      • ProxySessionReader

        protected ProxySessionReader()