Fix issue using explicitSourceAlias as SqlAliasBase, explicit alias starting with a _ char causes failures for Oracle, Derby and Db2 databases
This commit is contained in:
parent
3de89577f8
commit
cf449a986e
|
@ -849,8 +849,7 @@ public class ToOneAttributeMapping
|
||||||
SqlAliasBaseGenerator aliasBaseGenerator,
|
SqlAliasBaseGenerator aliasBaseGenerator,
|
||||||
SqlExpressionResolver sqlExpressionResolver,
|
SqlExpressionResolver sqlExpressionResolver,
|
||||||
SqlAstCreationContext creationContext) {
|
SqlAstCreationContext creationContext) {
|
||||||
final String aliasRoot = explicitSourceAlias == null ? sqlAliasStem : explicitSourceAlias;
|
final SqlAliasBase sqlAliasBase = aliasBaseGenerator.createSqlAliasBase( sqlAliasStem );
|
||||||
final SqlAliasBase sqlAliasBase = aliasBaseGenerator.createSqlAliasBase( aliasRoot );
|
|
||||||
final LazyTableGroup lazyTableGroup = new LazyTableGroup(
|
final LazyTableGroup lazyTableGroup = new LazyTableGroup(
|
||||||
navigablePath,
|
navigablePath,
|
||||||
() -> createTableGroupJoinInternal(
|
() -> createTableGroupJoinInternal(
|
||||||
|
|
Loading…
Reference in New Issue