@@ -417,22 +417,23 @@ public interface Session extends SharedSessionContract, EntityManager {
417417
418418 /**
419419 * Change the default for entities and proxies loaded into this session
420- * from modifiable to read-only mode, or from modifiable to read-only mode.
420+ * from modifiable to read-only mode, or from read-only to modifiable mode.
421421 * <p>
422- * Read-only entities are not dirty-checked and snapshots of persistent
423- * state are not maintained. Read-only entities can be modified, but
424- * changes are not persisted .
422+ * Read-only entities are not dirty-checked, and snapshots of persistent
423+ * state are not maintained. Read-only entities can be modified, but a
424+ * modification to a field of a read-only entity is not made persistent .
425425 * <p>
426426 * When a proxy is initialized, the loaded entity will have the same
427- * read-only/modifiable setting as the uninitialized proxy has,
428- * regardless of the session's current setting.
427+ * read-only/modifiable setting as the uninitialized proxy, regardless of
428+ * the {@linkplain #isDefaultReadOnly current default read-only mode}
429+ * of the session.
429430 * <p>
430431 * To change the read-only/modifiable setting for a particular entity
431- * or proxy that already belongs to this session use
432+ * or proxy that already belongs to this session, use
432433 * {@link #setReadOnly(Object, boolean)}.
433434 * <p>
434- * To override this session's read-only/modifiable setting for all
435- * entities and proxies loaded by a certain {@code Query} use
435+ * To override the default read-only mode of the current session for
436+ * all entities and proxies returned by a given {@code Query}, use
436437 * {@link Query#setReadOnly(boolean)}.
437438 *
438439 * @see #setReadOnly(Object,boolean)
@@ -1287,7 +1288,8 @@ public interface Session extends SharedSessionContract, EntityManager {
12871288 /**
12881289 * Set an unmodified persistent object to read-only mode, or a read-only
12891290 * object to modifiable mode. In read-only mode, no snapshot is maintained,
1290- * the instance is never dirty checked, and changes are not persisted.
1291+ * the instance is never dirty-checked, and mutations to the fields of the
1292+ * entity are not made persistent.
12911293 * <p>
12921294 * If the entity or proxy already has the specified read-only/modifiable
12931295 * setting, then this method does nothing.
0 commit comments