Skip to content

Commit

Permalink
HHH-17405 Handle generic mapped superclass path sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel authored and beikov committed Dec 19, 2023
1 parent 2349081 commit da89662
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@
* @author Steve Ebersole
*/
public class MappedSuperclassSqmPathSource<J> extends AbstractSqmPathSource<J> implements SqmJoinable<Object, J> {
private final boolean isGeneric;

public MappedSuperclassSqmPathSource(
String localPathName,
SqmPathSource<J> pathModel,
MappedSuperclassDomainType<J> domainType,
BindableType jpaBindableType) {
BindableType jpaBindableType,
boolean isGeneric) {
super( localPathName, pathModel, domainType, jpaBindableType );
this.isGeneric = isGeneric;
}

@Override
Expand All @@ -41,6 +45,11 @@ public SqmPathSource<?> findSubPathSource(String name) {
return sqmPathType.findSubPathSource( name );
}

@Override
public boolean isGeneric() {
return isGeneric;
}

@Override
public SqmPath<J> createSqmPath(SqmPath<?> lhs, SqmPathSource<?> intermediatePathSource) {
final NavigablePath navigablePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ public static <J> SqmPathSource<J> resolveSqmPathSource(
name,
pathModel,
(MappedSuperclassDomainType<J>) valueDomainType,
jpaBindableType
jpaBindableType,
isGeneric
);
}

Expand Down

0 comments on commit da89662

Please sign in to comment.