Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor improvement to javadoc for @OptimisticLock #9662

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

/**
* Specifies whether mutating the annotated attribute should trigger an increment
* to the {@link jakarta.persistence.Version version} of the entity instance. Or,
* if {@link OptimisticLockType#ALL} or {@link OptimisticLockType#DIRTY} are used,
* specifies whether the attribute should be included or excluded from the list of
* checked attributes.
* to the {@linkplain jakarta.persistence.Version version} of the entity instance.
* Or, when {@link OptimisticLockType#ALL @OptimisticLocking(type = ALL)} or
* {@link OptimisticLockType#DIRTY @OptimisticLocking(type = DIRTY)} is used,
* specifies whether the annotated attribute should be included or excluded from
* the list of checked attributes.
* <p>
* If this annotation is not present, mutating an attribute <em>does</em> cause the
* version to be incremented.
* If this annotation is not present, mutating an attribute <em>does</em> cause
* the version to be incremented.
*
* @author Logi Ragnarsson
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
*
* @see org.hibernate.LockMode
* @see jakarta.persistence.LockModeType
* @see OptimisticLock
*/
@Target( TYPE )
@Retention( RUNTIME )
Expand Down
Loading