diff --git a/hibernate-core/src/main/java/org/hibernate/boot/query/HbmResultSetMappingDescriptor.java b/hibernate-core/src/main/java/org/hibernate/boot/query/HbmResultSetMappingDescriptor.java
index acc2188069..ea6ccf511d 100644
--- a/hibernate-core/src/main/java/org/hibernate/boot/query/HbmResultSetMappingDescriptor.java
+++ b/hibernate-core/src/main/java/org/hibernate/boot/query/HbmResultSetMappingDescriptor.java
@@ -11,6 +11,7 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
@@ -662,8 +663,11 @@ public class HbmResultSetMappingDescriptor implements NamedResultSetMappingDescr
for ( int i = 1; i < propertyPathParts.length; i++ ) {
if ( ! ( fetchable instanceof FetchableContainer ) ) {
throw new MappingException(
- "Non-terminal property path [" + navigablePath.getFullPath()
- + " did not reference FetchableContainer"
+ String.format(
+ Locale.ROOT,
+ "Non-terminal property path did not reference FetchableContainer - %s ",
+ navigablePath
+ )
);
}
fetchable = (Fetchable) ( (FetchableContainer) fetchable ).findSubPart( propertyPathParts[i], null );
@@ -869,7 +873,11 @@ public class HbmResultSetMappingDescriptor implements NamedResultSetMappingDescr
this.tableAlias = hbmCollectionReturn.getAlias();
if ( tableAlias == null ) {
throw new MappingException(
- " did not specify alias [" + collectionPath.getFullPath() + "]"
+ String.format(
+ Locale.ROOT,
+ " did not specify alias - %s",
+ collectionPath
+ )
);
}
diff --git a/hibernate-core/src/main/java/org/hibernate/boot/query/SqlResultSetMappingDescriptor.java b/hibernate-core/src/main/java/org/hibernate/boot/query/SqlResultSetMappingDescriptor.java
index 56b6a1b493..09a3318248 100644
--- a/hibernate-core/src/main/java/org/hibernate/boot/query/SqlResultSetMappingDescriptor.java
+++ b/hibernate-core/src/main/java/org/hibernate/boot/query/SqlResultSetMappingDescriptor.java
@@ -407,8 +407,11 @@ public class SqlResultSetMappingDescriptor implements NamedResultSetMappingDescr
for ( int i = 1; i < propertyPathParts.length; i++ ) {
if ( ! ( subPart instanceof ModelPartContainer ) ) {
throw new MappingException(
- "Non-terminal property path [" + navigablePath.getFullPath()
- + " did not reference FetchableContainer"
+ String.format(
+ Locale.ROOT,
+ "Non-terminal property path did not reference FetchableContainer - %s ",
+ navigablePath
+ )
);
}
navigablePath = navigablePath.append( propertyPathParts[ i ] );
diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
index 9b00440460..5dd58d098c 100644
--- a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
+++ b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
@@ -899,8 +899,8 @@ public class ToOneAttributeMapping
final NavigablePath parentPath = grandparentNavigablePath.getParent();
// This can be null for a collection loader
if ( parentPath == null ) {
- return grandparentNavigablePath.getFullPath().equals(
- entityMappingType.findSubPart( bidirectionalAttributeName ).getNavigableRole().getFullPath()
+ return grandparentNavigablePath.equals(
+ entityMappingType.findSubPart( bidirectionalAttributeName ).getNavigableRole()
);
}
else {
diff --git a/hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPredicatePathConsumer.java b/hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPredicatePathConsumer.java
index 8463ae1c54..135d5d2114 100644
--- a/hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPredicatePathConsumer.java
+++ b/hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPredicatePathConsumer.java
@@ -78,8 +78,8 @@ public class QualifiedJoinPredicatePathConsumer extends BasicDotIdentifierConsum
String.format(
Locale.ROOT,
"SqmQualifiedJoin predicate referred to SqmRoot [`%s`] other than the join's root [`%s`]",
- pathRoot.getNavigablePath().getFullPath(),
- sqmJoin.getNavigablePath().getFullPath()
+ pathRoot.getNavigablePath(),
+ sqmJoin.getNavigablePath()
)
);
}
@@ -110,8 +110,8 @@ public class QualifiedJoinPredicatePathConsumer extends BasicDotIdentifierConsum
String.format(
Locale.ROOT,
"SqmQualifiedJoin predicate referred to SqmRoot [`%s`] other than the join's root [`%s`]",
- pathRoot.getNavigablePath().getFullPath(),
- sqmJoin.getNavigablePath().getFullPath()
+ pathRoot.getNavigablePath(),
+ sqmJoin.getNavigablePath()
)
);
}
diff --git a/hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java b/hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
index 1d5e70e769..b2c2fdf368 100644
--- a/hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
+++ b/hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
@@ -2291,7 +2291,7 @@ public class SemanticQueryBuilder extends HqlParserBaseVisitor