File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
spring-orm/src/main/java/org/springframework/orm/jpa/vendor Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2014 the original author or authors.
2+ * Copyright 2002-2015 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -119,6 +119,13 @@ public class HibernateJpaDialect extends DefaultJpaDialect {
119119 * {@code Connection.setReadOnly(true)} for read-only transactions anymore either.
120120 * If this flag is turned off, no cleanup of a JDBC Connection is required after
121121 * a transaction, since no Connection settings will get modified.
122+ * <p><b>NOTE:</b> The default behavior in terms of read-only handling changed
123+ * in Spring 4.1, propagating the read-only status to the JDBC Connection now,
124+ * analogous to other Spring transaction managers. This may have the effect
125+ * that you're running into read-only enforcement now where previously write
126+ * access has accidentally been tolerated: Please revise your transaction
127+ * declarations accordingly, removing invalid read-only markers if necessary.
128+ * @since 4.1
122129 * @see java.sql.Connection#setTransactionIsolation
123130 * @see java.sql.Connection#setReadOnly
124131 */
You can’t perform that action at this time.
0 commit comments