Skip to content

Commit 0ff588c

Browse files
saleese-gnugavinking
authored andcommitted
HHH-18993 Fix outdated information in user guide
Co-authored-by: Gavin King <[email protected]>
1 parent 0080e17 commit 0ff588c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

documentation/src/main/asciidoc/userguide/chapters/locking/Locking.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To artificially increase the version number, see the documentation for propertie
9696

9797
[NOTE]
9898
====
99-
If the version number is generated by the database, such as a trigger, use the annotation `@org.hibernate.annotations.Generated(GenerationTime.ALWAYS)` on the version attribute.
99+
If the version number is generated by the database, such as a trigger, implement a custom generator by extending the `OnExecutionGenerator` interface, and apply it to the version attribute using a custom annotation.
100100
====
101101

102102
[[locking-optimistic-timestamp]]

documentation/src/main/asciidoc/userguide/chapters/pc/BytecodeEnhancement.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ which means that accessing `accountsPayableXrefId` will not force the loading of
4141

4242
[NOTE]
4343
====
44-
As a hopefully temporary legacy hold-over, it is currently required that all lazy singular associations (many-to-one and one-to-one) also include `@LazyToOne(LazyToOneOption.NO_PROXY)`.
45-
The plan is to relax that requirement later.
44+
For existing codebases, it is recommended to remove usages of @LazyToOne, such as `@LazyToOne(LazyToOneOption.NO_PROXY)`, and instead rely on default lazy loading behavior or explicitly configure fetch strategies using `@OneToOne` or `@ManyToOne` annotations with `fetch = FetchType.LAZY` where necessary, such as `@OneToOne(fetch = FetchType.LAZY)`.
4645
====
4746

4847
[[BytecodeEnhancement-dirty-tracking]]

documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ strategy so that we can load entities from the second-level cache, therefore ski
229229
`withBatchSize(int batchSize)`::
230230
This setting allows you to specify a batch size for loading the entities (e.g. how many at a time).
231231
+
232-
The default is to use a batch sizing strategy defined by the `Dialect.getDefaultBatchLoadSizingStrategy()` method.
232+
The default is to use a batch sizing strategy defined by the `Dialect.getBatchLoadSizingStrategy()` method.
233233
+
234234
Any greater-than-one value here will override that default behavior.
235235
`with(RootGraph<T> graph)`::

0 commit comments

Comments
 (0)