@@ -148,7 +148,7 @@ public static EntityManagerFactory findEntityManagerFactory(
148
148
* Obtain a JPA EntityManager from the given factory. Is aware of a corresponding
149
149
* EntityManager bound to the current thread, e.g. when using JpaTransactionManager.
150
150
* <p>Note: Will return {@code null} if no thread-bound EntityManager found!
151
- * @param emf EntityManagerFactory to create the EntityManager with
151
+ * @param emf the EntityManagerFactory to create the EntityManager with
152
152
* @return the EntityManager, or {@code null} if none found
153
153
* @throws DataAccessResourceFailureException if the EntityManager couldn't be obtained
154
154
* @see JpaTransactionManager
@@ -163,7 +163,7 @@ public static EntityManager getTransactionalEntityManager(EntityManagerFactory e
163
163
* Obtain a JPA EntityManager from the given factory. Is aware of a corresponding
164
164
* EntityManager bound to the current thread, e.g. when using JpaTransactionManager.
165
165
* <p>Note: Will return {@code null} if no thread-bound EntityManager found!
166
- * @param emf EntityManagerFactory to create the EntityManager with
166
+ * @param emf the EntityManagerFactory to create the EntityManager with
167
167
* @param properties the properties to be passed into the {@code createEntityManager}
168
168
* call (may be {@code null})
169
169
* @return the EntityManager, or {@code null} if none found
@@ -184,7 +184,7 @@ public static EntityManager getTransactionalEntityManager(EntityManagerFactory e
184
184
* Obtain a JPA EntityManager from the given factory. Is aware of a corresponding
185
185
* EntityManager bound to the current thread, e.g. when using JpaTransactionManager.
186
186
* <p>Same as {@code getEntityManager}, but throwing the original PersistenceException.
187
- * @param emf EntityManagerFactory to create the EntityManager with
187
+ * @param emf the EntityManagerFactory to create the EntityManager with
188
188
* @param properties the properties to be passed into the {@code createEntityManager}
189
189
* call (may be {@code null})
190
190
* @return the EntityManager, or {@code null} if none found
@@ -202,7 +202,7 @@ public static EntityManager doGetTransactionalEntityManager(EntityManagerFactory
202
202
* Obtain a JPA EntityManager from the given factory. Is aware of a corresponding
203
203
* EntityManager bound to the current thread, e.g. when using JpaTransactionManager.
204
204
* <p>Same as {@code getEntityManager}, but throwing the original PersistenceException.
205
- * @param emf EntityManagerFactory to create the EntityManager with
205
+ * @param emf the EntityManagerFactory to create the EntityManager with
206
206
* @param properties the properties to be passed into the {@code createEntityManager}
207
207
* call (may be {@code null})
208
208
* @param synchronizedWithTransaction whether to automatically join ongoing
@@ -287,7 +287,6 @@ else if (!TransactionSynchronizationManager.isSynchronizationActive()) {
287
287
288
288
// Use same EntityManager for further JPA operations within the transaction.
289
289
// Thread-bound object will get removed by synchronization at transaction completion.
290
- logger .debug ("Registering transaction synchronization for JPA EntityManager" );
291
290
emHolder = new EntityManagerHolder (em );
292
291
if (synchronizedWithTransaction ) {
293
292
Object transactionData = prepareTransaction (em , emf );
@@ -347,7 +346,7 @@ private static void cleanupTransaction(Object transactionData, EntityManagerFact
347
346
* Apply the current transaction timeout, if any, to the given JPA Query object.
348
347
* <p>This method sets the JPA 2.0 query hint "javax.persistence.query.timeout" accordingly.
349
348
* @param query the JPA Query object
350
- * @param emf JPA EntityManagerFactory that the Query was created for
349
+ * @param emf the JPA EntityManagerFactory that the Query was created for
351
350
*/
352
351
public static void applyTransactionTimeout (Query query , EntityManagerFactory emf ) {
353
352
EntityManagerHolder emHolder = (EntityManagerHolder ) TransactionSynchronizationManager .getResource (emf );
@@ -432,7 +431,6 @@ public static DataAccessException convertJpaAccessExceptionIfPossible(RuntimeExc
432
431
*/
433
432
public static void closeEntityManager (EntityManager em ) {
434
433
if (em != null ) {
435
- logger .debug ("Closing JPA EntityManager" );
436
434
try {
437
435
if (em .isOpen ()) {
438
436
em .close ();
0 commit comments