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