Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@beikov
Copy link
Member

@beikov beikov commented Dec 31, 2025


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.


https://hibernate.atlassian.net/browse/HHH-19974

@namuuCY
Copy link
Contributor

namuuCY commented Dec 31, 2025

Hi @beikov,
I see that this PR supersedes my PR #11460 and includes the regression test case I wrote.

Since my contribution (the test case) is part of this PR, could you please add a
Co-authored-by: namuuCY [email protected]
trailer to the commit message when you merge?
It would mean a lot to me to have my contribution recognized.

Thanks for the great work on the refactoring, and Happy New Year! 🎉

}
}
return Long.parseLong( columnDefinition.substring( parenthesisIndex + 1, end ) );
return Long.parseLong( sqlTypeName.substring( parenthesisIndex + 1, end ) );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
}
}
return Long.parseLong( columnDefinition.substring( parenthesisIndex + 1, end ) );
return Long.parseLong( sqlTypeName.substring( parenthesisIndex + 1, end ) );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
return getCastTypeName( (JdbcMappingContainer) type, dialect, typeConfiguration );
}

public static String getCastTypeName(JdbcMappingContainer type, Dialect dialect, TypeConfiguration typeConfiguration) {

Check notice

Code scanning / CodeQL

Confusing overloading of methods Note

Method DdlTypeHelper.getCastTypeName(..) could be confused with overloaded method
getCastTypeName
, since dispatch depends on static types.
Method DdlTypeHelper.getCastTypeName(..) could be confused with overloaded method
getCastTypeName
, since dispatch depends on static types.
return getCastTypeName( type, Size.nil(), dialect, typeConfiguration );
}

public static String getCastTypeName(JdbcMappingContainer type, Size size, Dialect dialect, TypeConfiguration typeConfiguration) {

Check notice

Code scanning / CodeQL

Confusing overloading of methods Note

Method DdlTypeHelper.getCastTypeName(..) could be confused with overloaded method
getCastTypeName
, since dispatch depends on static types.

public static String getCastTypeName(ReturnableType<?> type, TypeConfiguration typeConfiguration) {
return getCastTypeName( type, Size.nil(), typeConfiguration );
public static String getCastTypeName(ReturnableType<?> type, Dialect dialect, TypeConfiguration typeConfiguration) {

Check notice

Code scanning / CodeQL

Confusing overloading of methods Note

Method DdlTypeHelper.getCastTypeName(..) could be confused with overloaded method
getCastTypeName
, since dispatch depends on static types.
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.

2 participants