Skip to content

Commit bb83e54

Browse files
committed
Correct the default value of nestedTransactionAllowed in Javadoc
Signed-off-by: Giheon Do <[email protected]>
1 parent adc64d5 commit bb83e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/JpaTransactionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
*
9494
* <p>This transaction manager supports nested transactions via JDBC Savepoints.
9595
* The {@link #setNestedTransactionAllowed "nestedTransactionAllowed"} flag defaults
96-
* to {@code false} though, since nested transactions will just apply to the JDBC
96+
* to {@code true} though, since nested transactions will just apply to the JDBC
9797
* Connection, not to the JPA EntityManager and its cached entity objects and related
98-
* context. You can manually set the flag to {@code true} if you want to use nested
98+
* context. You can manually set the flag to {@code false} if you want to disallow nested
9999
* transactions for JDBC access code which participates in JPA transactions (provided
100100
* that your JDBC driver supports Savepoints). <i>Note that JPA itself does not support
101101
* nested transactions! Hence, do not expect JPA access code to semantically

0 commit comments

Comments
 (0)