Skip to content

Conversation

@gavinking
Copy link
Member

@gavinking gavinking commented May 30, 2025

  • simply delete one which was @Incubating
  • replace others via deprecation

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


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

- simply delete one which was @Incubating
- replace others via deprecation
default JdbcType getJdbcType(TypeConfiguration typeConfiguration) {
return typeConfiguration.getJdbcTypeRegistry().getDescriptor( getSqlType() );
@Deprecated(since = "7.0", forRemoval = true)
default long getDefaultSqlLength(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'dialect' is never used.
default JdbcType getJdbcType(TypeConfiguration typeConfiguration) {
return typeConfiguration.getJdbcTypeRegistry().getDescriptor( getSqlType() );
@Deprecated(since = "7.0", forRemoval = true)
default long getDefaultSqlLength(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'jdbcType' is never used.
* Use {@link #getDefaultSqlPrecision()}
*/
@Deprecated(since = "7.0", forRemoval = true)
default int getDefaultSqlPrecision(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'dialect' is never used.
* Use {@link #getDefaultSqlPrecision()}
*/
@Deprecated(since = "7.0", forRemoval = true)
default int getDefaultSqlPrecision(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'jdbcType' is never used.
* Use {@link #getDefaultSqlScale()}
*/
@Deprecated(since = "7.0", forRemoval = true)
default int getDefaultSqlScale(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'dialect' is never used.
* Use {@link #getDefaultSqlScale()}
*/
@Deprecated(since = "7.0", forRemoval = true)
default int getDefaultSqlScale(Dialect dialect, JdbcType jdbcType) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'jdbcType' is never used.
@gavinking gavinking force-pushed the HHH-19500 branch 3 times, most recently from c6960ff to 9f74edb Compare May 30, 2025 14:14
- getValueConverter() to return JPA AttributeConverter
  since this is a much less technical interface and is
  easier for user to implement
- had to fix a problem with embeddable discriminators
  manifesting in JsonHelper and StructHelper and took
  the opportunity to clean up use of generic types
- now probably need efficient impls of isInstance()
@gavinking gavinking merged commit 6b5099d into hibernate:main May 30, 2025
25 checks passed
@lprimak
Copy link

lprimak commented May 30, 2025

Love these tech-debt-reducing updates!

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