Skip to content

Conversation

@gavinking
Copy link
Member

[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.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Sep 14, 2024

Thanks for your pull request!

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

❌ Contribution — JIRA issues
    ↳ Failed with exception org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/hibernate/hibernate-orm/commits/59731c089e9d649a663c81d9622b54557d6aba37 {"message":"Not Found","documentation_url":"https://docs.github.com/rest/commits/commits#get-a-commit","status":"404"}

› This message was automatically generated.

@gavinking gavinking changed the title cleanups by spotless Enable Spotless Sep 14, 2024
* @param message The message explaining the exception condition
*/
public QueryParameterException(String message) {
super( message );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [QueryException.QueryException](1) should be avoided because it has been deprecated.
Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting on hold until we figure out how to make this consistent with the auto-formatter on Search/Validator.
Maybe there's nothing to do, but let's at least check.

assertTrue( test.getDate1().equals(testvalue));
test = (TestInterSystemsFunctionsClass) s2.byId( TestInterSystemsFunctionsClass.class ).with( LockOptions.NONE ).load( 10L );
assertTrue( test.getDate1().equals(testvalue));
Date value = (Date) s2.createQuery( "select nvl(o.date,o.dateText) from TestInterSystemsFunctionsClass as o" )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.createQuery](1) should be avoided because it has been deprecated.
assertTrue( value.equals(testvalue));
Object nv = s2.createQuery( "select nullif(o.dateText,o.dateText) from TestInterSystemsFunctionsClass as o" )
assertTrue( value.equals(testvalue));
Object nv = s2.createQuery( "select nullif(o.dateText,o.dateText) from TestInterSystemsFunctionsClass as o" )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.createQuery](1) should be avoided because it has been deprecated.
assertTrue( dateText.equals("1977-07-03"));
value = (Date) s2.createQuery( "select ifnull(o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
assertTrue( dateText.equals("1977-07-03"));
value = (Date) s2.createQuery( "select ifnull(o.date,o.date1) from TestInterSystemsFunctionsClass as o" )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.createQuery](1) should be avoided because it has been deprecated.
assertTrue( value.equals(testvalue));
value = (Date) s2.createQuery( "select ifnull(o.date3,o.date,o.date1) from TestInterSystemsFunctionsClass as o" )
assertTrue( value.equals(testvalue));
value = (Date) s2.createQuery( "select ifnull(o.date3,o.date,o.date1) from TestInterSystemsFunctionsClass as o" )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.createQuery](1) should be avoided because it has been deprecated.
assertTrue(pos.intValue() == 6);
String st = (String) s2.createQuery( "select convert(o.date1, SQL_TIME) from TestInterSystemsFunctionsClass as o" )
assertTrue(pos.intValue() == 6);
String st = (String) s2.createQuery( "select convert(o.date1, SQL_TIME) from TestInterSystemsFunctionsClass as o" )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.createQuery](1) should be avoided because it has been deprecated.
@gavinking
Copy link
Member Author

This now implements the suggestions made by @yrodiere. I'm going to merge it soon, because it's a PITA to resolve conflicts in such a massive commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants