Fix HQLTest issue and javadoc aggregation

This commit is contained in:
Christian Beikov 2022-11-29 01:43:32 +01:00
parent 1f9a6f43f1
commit a81f9d3e2d
2 changed files with 8 additions and 2 deletions

View File

@ -4436,8 +4436,13 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
? pluralAttributeMapping.getIndexDescriptor()
: pluralAttributeMapping.getElementDescriptor();
final ModelPart modelPart;
if ( collectionPart instanceof EntityAssociationMapping ) {
modelPart = ( (EntityAssociationMapping) collectionPart ).getKeyTargetMatchPart();
if ( collectionPart instanceof OneToManyCollectionPart ) {
final OneToManyCollectionPart toManyPart = (OneToManyCollectionPart) collectionPart;
modelPart = toManyPart.getAssociatedEntityMappingType().getIdentifierMapping();
// modelPart = pluralAttributeMapping.getKeyDescriptor().getTargetPart();
}
else if ( collectionPart instanceof ManyToManyCollectionPart ) {
modelPart = ( (ManyToManyCollectionPart) collectionPart ).getKeyTargetMatchPart();
}
else {
modelPart = collectionPart;

View File

@ -145,6 +145,7 @@ dependencies {
javadocClasspath libs.jackson
javadocClasspath gradleApi()
javadocClasspath libs.jacksonXml
javadocClasspath dbLibs.oracle
}