hibernate中当前会话上下文类属性的可能值及其使用
我想知道cfg.xml文件中的hibernate中当前会话上下文类属性的可能值及其使用,hibernate,session,Hibernate,Session,我想知道cfg.xml文件中的current\u session\u context\u class属性可以使用的所有可能值?我有一个线程值的概念,它使会话上下文与每个线程相关,比如propertyname=“current\u session\u context\u class”thread 对于Hibernate 4,有效值包括: jta、thread和managed(它们是Hibernate提供的实现的别名) 包含包的完整类名到任何其他自定义类 实现org.hibernate.contex
current\u session\u context\u class
属性可以使用的所有可能值?我有一个线程值的概念,它使会话上下文与每个线程相关,比如propertyname=“current\u session\u context\u class”
thread 对于Hibernate 4,有效值包括:
这在中说明当前会话上下文类属性是否有任何默认值,或者我们必须在cfg.xml文件中明确定义它。我的意思是,我们需要在cfg、xml或会话上下文中明确地告诉会话上下文在jta、thread、manager之间有一些特定的实现,如果没有定义,将使用jta,我不相信当前会话上下文类有默认值。哪一个是默认值?