File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
spring-orm/src/main/java/org/springframework/orm/hibernate5/support
spring-tx/src/main/java/org/springframework/transaction/support Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
51
51
* as well as for non-transactional execution (if configured appropriately).
52
52
*
53
53
* <p><b>NOTE</b>: This filter will by default <i>not</i> flush the Hibernate Session,
54
- * with the flush mode set to {@code FlushMode.NEVER }. It assumes to be used
54
+ * with the flush mode set to {@code FlushMode.MANUAL }. It assumes to be used
55
55
* in combination with service layer transactions that care for the flushing: The
56
56
* active transaction manager will temporarily change the flush mode to
57
57
* {@code FlushMode.AUTO} during a read-write transaction, with the flush
58
- * mode reset to {@code FlushMode.NEVER } at the end of each transaction.
58
+ * mode reset to {@code FlushMode.MANUAL } at the end of each transaction.
59
59
*
60
60
* <p><b>WARNING:</b> Applying this filter to existing logic can cause issues that
61
61
* have not appeared before, through the use of a single Hibernate Session for the
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -383,7 +383,7 @@ public static void setCurrentTransactionReadOnly(boolean readOnly) {
383
383
* as argument for the {@code beforeCommit} callback, to be able
384
384
* to suppress change detection on commit. The present method is meant
385
385
* to be used for earlier read-only checks, for example to set the
386
- * flush mode of a Hibernate Session to "FlushMode.NEVER " upfront.
386
+ * flush mode of a Hibernate Session to "FlushMode.MANUAL " upfront.
387
387
* @see org.springframework.transaction.TransactionDefinition#isReadOnly()
388
388
* @see TransactionSynchronization#beforeCommit(boolean)
389
389
*/
You can’t perform that action at this time.
0 commit comments