Possible values of current_session_context_class property in hibernate and uses

后端 未结 1 2038
庸人自扰
庸人自扰 2021-01-04 07:27

I wanted to know all possible values that can be used with current_session_context_class property in cfg.xml file? I have an idea of thread value that makes th

相关标签:
1条回答
  • 2021-01-04 07:59

    For Hibernate 4 valid values include:

    1. jta, thread, and managed (which are aliases for implementations delivered with Hibernate).
    2. full class name with package to any other custom class that implements org.hibernate.context.spi.CurrentSessionContext

    This is told in Hibernate manual - 2.3. Contextual sessions

    0 讨论(0)
提交回复
热议问题