Skip to content

Conversation

beikov
Copy link
Member

@beikov beikov commented Aug 15, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@beikov beikov added the hana label Aug 15, 2025
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Aug 15, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [12252c4, eb845ec]

› This message was automatically generated.

}
private String withTimeout(String lockString, int timeout) {
return switch (timeout) {
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsNoWait
should be avoided because it has been deprecated.
private String withTimeout(String lockString, int timeout) {
return switch (timeout) {
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsSkipLocked
should be avoided because it has been deprecated.
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;
case Timeouts.WAIT_FOREVER_MILLI -> lockString;
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsWait
should be avoided because it has been deprecated.
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;
case Timeouts.WAIT_FOREVER_MILLI -> lockString;
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.getTimeoutInSeconds
should be avoided because it has been deprecated.
}
private String withTimeout(String lockString, int timeout) {
return switch (timeout) {
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsNoWait
should be avoided because it has been deprecated.
private String withTimeout(String lockString, int timeout) {
return switch (timeout) {
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsSkipLocked
should be avoided because it has been deprecated.
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;
case Timeouts.WAIT_FOREVER_MILLI -> lockString;
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.supportsWait
should be avoided because it has been deprecated.
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString;
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString;
case Timeouts.WAIT_FOREVER_MILLI -> lockString;
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Dialect.getTimeoutInSeconds
should be avoided because it has been deprecated.
@beikov beikov force-pushed the hana-fixes branch 2 times, most recently from 1cf74a8 to b2ec9c1 Compare August 19, 2025 16:54
@beikov beikov merged commit 3b0c822 into hibernate:main Aug 21, 2025
24 of 27 checks passed
@beikov beikov deleted the hana-fixes branch August 21, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant