|
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 false} though, since nested transactions will just apply to the JDBC |
97 | | - * 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 |
99 | | - * transactions for JDBC access code which participates in JPA transactions (provided |
100 | | - * that your JDBC driver supports Savepoints). <i>Note that JPA itself does not support |
| 96 | + * to "false", though, as nested transactions will just apply to the JDBC Connection, |
| 97 | + * not to the JPA EntityManager and its cached entity objects and related context. |
| 98 | + * You can manually set the flag to "true" if you want to use nested transactions |
| 99 | + * for JDBC access code which participates in JPA transactions (provided that your |
| 100 | + * JDBC driver supports savepoints). <i>Note that JPA itself does not support |
101 | 101 | * nested transactions! Hence, do not expect JPA access code to semantically |
102 | 102 | * participate in a nested transaction.</i> |
103 | 103 | * |
@@ -136,15 +136,13 @@ public class JpaTransactionManager extends AbstractPlatformTransactionManager |
136 | 136 | * @see #setEntityManagerFactory |
137 | 137 | */ |
138 | 138 | public JpaTransactionManager() { |
139 | | - setNestedTransactionAllowed(true); |
140 | 139 | } |
141 | 140 |
|
142 | 141 | /** |
143 | 142 | * Create a new JpaTransactionManager instance. |
144 | 143 | * @param emf the EntityManagerFactory to manage transactions for |
145 | 144 | */ |
146 | 145 | public JpaTransactionManager(EntityManagerFactory emf) { |
147 | | - this(); |
148 | 146 | this.entityManagerFactory = emf; |
149 | 147 | afterPropertiesSet(); |
150 | 148 | } |
|
0 commit comments