|
|
|
|
@ -241,12 +241,6 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
@@ -241,12 +241,6 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
|
|
|
|
|
|
|
|
|
|
PersistentPropertyPathExtension extPath = new PersistentPropertyPathExtension(context, path); |
|
|
|
|
|
|
|
|
|
// add a join if necessary
|
|
|
|
|
Join join = getJoin(sqlContext, extPath); |
|
|
|
|
if (join != null) { |
|
|
|
|
joinTables.add(join); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (returnedType.needsCustomConstruction()) { |
|
|
|
|
if (!returnedType.getInputProperties() |
|
|
|
|
.contains(extPath.getRequiredPersistentPropertyPath().getBaseProperty().getName())) { |
|
|
|
|
@ -254,6 +248,12 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
@@ -254,6 +248,12 @@ class JdbcQueryCreator extends RelationalQueryCreator<ParametrizedQuery> {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// add a join if necessary
|
|
|
|
|
Join join = getJoin(sqlContext, extPath); |
|
|
|
|
if (join != null) { |
|
|
|
|
joinTables.add(join); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Column column = getColumn(sqlContext, extPath); |
|
|
|
|
if (column != null) { |
|
|
|
|
columnExpressions.add(column); |
|
|
|
|
|