Skip to content

Commit 65ad36a

Browse files
committed
yet another warning
1 parent 52fa8ac commit 65ad36a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hibernate-core/src/main/java/org/hibernate/SessionFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
* Typically, a program has a single {@link SessionFactory} instance, and must
4646
* obtain a new {@link Session} instance from the factory each time it services
4747
* a client request. It is then also responsible for {@linkplain Session#close()
48-
* destroying} the session at the end of the client request.
48+
* destroying} the session at the end of the client request. An instance of
49+
* {@code Session} must never be shared between multiple threads.
4950
* <p>
5051
* The {@link #inSession} and {@link #inTransaction} methods provide a convenient
5152
* way to obtain a session, with or without starting a transaction, and have it

0 commit comments

Comments
 (0)