Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ else if ( fetch ) {
}
}
}
if ( !(subPathSource instanceof SqmJoinable) ) {
throw new SemanticException( "Joining on basic value elements is not supported",
((SemanticQueryBuilder<?>) creationState).getQuery() );
}
@SuppressWarnings("unchecked")
final SqmJoinable<U, ?> joinSource = (SqmJoinable<U, ?>) subPathSource;
return createJoin( lhs, joinType, alias, fetch, isTerminal, allowReuse, creationState, joinSource );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ public Stack<SqmCreationProcessingState> getProcessingStateStack() {
return processingStateStack;
}

public String getQuery() {
return query;
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Grammar rules

Expand Down
Loading