HHH-16061 SqmDynamicInstantiation warns about dynamic Map instantiation when using an entity
This commit is contained in:
parent
e6b94398de
commit
01db71c272
|
@ -171,6 +171,7 @@ public class SqmDynamicInstantiation<T>
|
|||
}
|
||||
else if ( instantiationTarget.getNature() == MAP ) {
|
||||
// must(?) have an alias...
|
||||
if ( argument.getAlias() == null ) {
|
||||
log.warnf(
|
||||
"Argument [%s] for dynamic Map instantiation did not declare an 'injection alias' [%s] " +
|
||||
"but such aliases are needed for dynamic Map instantiations; " +
|
||||
|
@ -179,6 +180,7 @@ public class SqmDynamicInstantiation<T>
|
|||
argument.getAlias()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ( arguments == null ) {
|
||||
arguments = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue