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
HHH-17375 HQL syntax sugar for array operations #8330
Conversation
Nice! |
Class<?> javaTypeClass = jdbcMapping.getJavaTypeDescriptor().getJavaTypeClass(); | ||
if ( javaTypeClass == Boolean.class ) { | ||
// BooleanJavaType has this as an implicit conversion | ||
return Integer.parseInt( string, start, end, 10 ) == 1; |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note
return Integer.parseInt( string, start, end, 10 ) == 1; | ||
} | ||
if ( javaTypeClass.isEnum() ) { | ||
return javaTypeClass.getEnumConstants()[Integer.parseInt( string, start, end, 10 )]; |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException Note
throw new SemanticException( | ||
"Oracle array_agg emulation requires a basic plural return type, but resolved return type was: " + returnType | ||
); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
SemanticException.SemanticException
@@ -125,4 +161,8 @@ | |||
|
|||
return new String[] { buf.toString() }; | |||
} | |||
|
|||
public String[] getSqlDropStrings(UserDefinedArrayType userDefinedType, Metadata metadata, SqlStringGenerationContext context) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
} | ||
} | ||
|
||
public String[] getSqlDropStrings(UserDefinedObjectType userDefinedType, Metadata metadata, SqlStringGenerationContext context) { |
Check notice
Code scanning / CodeQL
Useless parameter Note
} | ||
} | ||
|
||
public String[] getSqlDropStrings(UserDefinedObjectType userDefinedType, Metadata metadata, SqlStringGenerationContext context) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
getSqlDropStrings
@@ -82,12 +99,19 @@ | |||
} | |||
} | |||
|
|||
public String[] getSqlCreateStrings( |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
getSqlCreateStrings
} | ||
} | ||
|
||
public String[] getSqlCreateStrings( |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
getSqlCreateStrings
import org.hibernate.type.spi.TypeConfiguration; | ||
|
||
/** | ||
* @author Christian Beikov | ||
*/ | ||
public class StructJdbcType implements AggregateJdbcType { | ||
public class StructJdbcType implements org.hibernate.type.descriptor.jdbc.StructJdbcType { |
Check notice
Code scanning / CodeQL
Class has same name as super class Note
org.hibernate.type.descriptor.jdbc.StructJdbcType
} | ||
|
||
@Override | ||
public boolean equals(Object object) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
equals
0b01125
to
e24a948
Compare
9ef3fa3
to
99d9173
Compare
2e1108d
to
aca4cd9
Compare
…ment to array_to_string for null element handling
…he replacement of array_overlaps
…ing if array contains all elements of subarray as replacement to array_contains() overload
|
||
@Internal | ||
public static boolean isAssignableTo(JdbcMapping defined, JdbcMapping implied) { |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
https://hibernate.atlassian.net/browse/HHH-17375
https://hibernate.atlassian.net/browse/HHH-18089