There was an error while loading. Please reload this page.
1 parent 52fa8ac commit 65ad36aCopy full SHA for 65ad36a
hibernate-core/src/main/java/org/hibernate/SessionFactory.java
@@ -45,7 +45,8 @@
45
* Typically, a program has a single {@link SessionFactory} instance, and must
46
* obtain a new {@link Session} instance from the factory each time it services
47
* a client request. It is then also responsible for {@linkplain Session#close()
48
- * destroying} the session at the end of the client request.
+ * destroying} the session at the end of the client request. An instance of
49
+ * {@code Session} must never be shared between multiple threads.
50
* <p>
51
* The {@link #inSession} and {@link #inTransaction} methods provide a convenient
52
* way to obtain a session, with or without starting a transaction, and have it
0 commit comments