HHH-18102 Little bit of cosmetics to allow merging with PR 8095; it is not affecting any logic

This commit is contained in:
Cedomir Igaly 2024-05-13 12:35:44 +02:00 committed by Gavin King
parent df7f104689
commit fd3cb949a7
2 changed files with 3 additions and 4 deletions

View File

@ -205,11 +205,10 @@ public class BasicDotIdentifierConsumer implements DotIdentifierConsumer {
final String prefix = path.substring( 0, splitPosition );
final String terminal = path.substring( splitPosition + 1 );
//TODO: try interpreting paths of form foo.bar.Foo.Bar as foo.bar.Foo$Bar
final EnumJavaType<?> enumType = jpaMetamodel.getEnumType(prefix);
final EnumJavaType<?> enumType = jpaMetamodel.getEnumType( prefix );
if ( enumType != null ) {
return new SqmEnumLiteral(
jpaMetamodel.enumValue(enumType, terminal),
jpaMetamodel.enumValue( enumType, terminal ),
enumType,
terminal,
nodeBuilder

View File

@ -842,7 +842,7 @@ public abstract class MockSessionFactory
}
@Override
public <E extends Enum<E>> E enumValue(EnumJavaType<E> enumType, String terminal) {
public <E extends Enum<E>> E enumValue(EnumJavaType<E> enumType, String enumValueName) {
return null;
}