Skip to content

Commit 1f0e056

Browse files
committed
minor improvement to javadoc for @OptimisticLock
1 parent 7532d5e commit 1f0e056

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

hibernate-core/src/main/java/org/hibernate/annotations/OptimisticLock.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
/**
1313
* Specifies whether mutating the annotated attribute should trigger an increment
14-
* to the {@link jakarta.persistence.Version version} of the entity instance. Or,
15-
* if {@link OptimisticLockType#ALL} or {@link OptimisticLockType#DIRTY} are used,
16-
* specifies whether the attribute should be included or excluded from the list of
17-
* checked attributes.
14+
* to the {@linkplain jakarta.persistence.Version version} of the entity instance.
15+
* Or, when {@link OptimisticLockType#ALL @OptimisticLocking(type = ALL)} or
16+
* {@link OptimisticLockType#DIRTY @OptimisticLocking(type = DIRTY)} is used,
17+
* specifies whether the annotated attribute should be included or excluded from
18+
* the list of checked attributes.
1819
* <p>
19-
* If this annotation is not present, mutating an attribute <em>does</em> cause the
20-
* version to be incremented.
20+
* If this annotation is not present, mutating an attribute <em>does</em> cause
21+
* the version to be incremented.
2122
*
2223
* @author Logi Ragnarsson
2324
*/

hibernate-core/src/main/java/org/hibernate/annotations/OptimisticLocking.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
*
4646
* @see org.hibernate.LockMode
4747
* @see jakarta.persistence.LockModeType
48+
* @see OptimisticLock
4849
*/
4950
@Target( TYPE )
5051
@Retention( RUNTIME )

0 commit comments

Comments
 (0)