File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-orm/src/main/java/org/springframework/orm/jpa Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 93
93
*
94
94
* <p>This transaction manager supports nested transactions via JDBC Savepoints.
95
95
* The {@link #setNestedTransactionAllowed "nestedTransactionAllowed"} flag defaults
96
- * to {@code true} though, since nested transactions will just apply to the JDBC
96
+ * to {@code true}, but nested transactions will just apply to the JDBC
97
97
* Connection, not to the JPA EntityManager and its cached entity objects and related
98
98
* context. You can manually set the flag to {@code false} if you want to disallow nested
99
99
* transactions for JDBC access code which participates in JPA transactions (provided
100
100
* that your JDBC driver supports Savepoints). <i>Note that JPA itself does not support
101
- * nested transactions! Hence, do not expect JPA access code to semantically
101
+ * nested transactions! Furthermore, as most JPA providers (e.g., Hibernate)
102
+ * do not support savepoints, {@code Propagation.NESTED} will not work and will typically
103
+ * result in an exception. Hence, do not expect JPA access code to semantically
102
104
* participate in a nested transaction.</i>
103
105
*
104
106
* @author Juergen Hoeller
You can’t perform that action at this time.
0 commit comments