Skip to content

Commit 75089cb

Browse files
committed
add a couple of links to native APIs
1 parent 7a84276 commit 75089cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/src/main/asciidoc/introduction/Interacting.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ When a transaction rolls back, Hibernate makes no attempt to roll back the state
241241
After a transaction rollback, the persistence context must be discarded, and the state of its entities must be assumed inconsistent with the state held by the database.
242242
====
243243

244+
The interface link:{doc-javadoc-url}org/hibernate/Transaction.html[`Transaction`] extends `EntityTransaction` with some additional operations, including the ability to register transaction completion callbacks.
245+
244246
[[persistence-operations]]
245247
=== Operations on the persistence context
246248

@@ -743,13 +745,13 @@ session.getTransaction().commit();
743745
| `ALWAYS` | | Flush before transaction commit, and before execution of every query
744746
|===
745747

746-
A second way to reduce the cost of flushing is to load entities in _read-only_ mode:
748+
A second way to reduce the cost of flushing is to load entities in link:{doc-javadoc-url}org/hibernate/Session.html#setDefaultReadOnly(boolean)[_read-only_ mode]:
747749

748750
- `Session.setDefaultReadOnly(true)` specifies that all entities loaded by a given session should be loaded in read-only mode by default,
749751
- `SelectionQuery.setReadOnly(true)` specifies that every entity returned by a given query should be loaded in read-only mode, and
750752
- `Session.setReadOnly(Object, true)` specifies that a given entity already loaded by the session should be switched to read-only mode.
751753

752-
Hibernate's `ReadOnlyMode` is a custom `FindOption`:
754+
Hibernate's link:{doc-javadoc-url}org/hibernate/ReadOnlyMode.html[`ReadOnlyMode`] is a custom `FindOption`:
753755

754756
[source,java]
755757
----

0 commit comments

Comments
 (0)