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

errata: @EntityResult.lockMode should default to NONE #624

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/persistence/EntityResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
* The lock mode obtained by the SQL query.
* @since 3.2
*/
LockModeType lockMode() default LockModeType.OPTIMISTIC;
LockModeType lockMode() default LockModeType.NONE;

/**
* Maps the columns specified in the SELECT list of the
Expand Down
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/ch10-metadata-annotations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ respectively.
@Retention(RUNTIME)
public @interface EntityResult {
Class entityClass();
LockModeType lockMode() default LockModeType.OPTIMISTIC;
LockModeType lockMode() default LockModeType.NONE;
FieldResult[] fields() default {};
String discriminatorColumn() default "";
}
Expand Down
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/ch12-xml-or-mapping-descriptor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1920,7 +1920,7 @@ object/relational mapping schema for use with the Persistence API.
@Target({}) @Retention(RUNTIME)
public @interface EntityResult {
Class<?> entityClass();
LockModeType lockMode() default LockModeType.OPTIMISTIC;
LockModeType lockMode() default LockModeType.NONE;
FieldResult[] fields() default {};
String discriminatorColumn() default "";
}
Expand Down