From 08e1aae49ff5eba23fedc980ac394f4131f42c20 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 16 Feb 2023 15:14:24 +0100 Subject: [PATCH] HHH-16009 jakarta @OrderBy annotation generates a non-transformed column name in the SQL query for a composite key's field --- .../metamodel/mapping/internal/AbstractEmbeddableMapping.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java index 9f42f37107..bf5a3eb0d9 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.java @@ -496,6 +496,7 @@ public abstract class AbstractEmbeddableMapping implements EmbeddableMappingType @Override public AttributeMappingsList getAttributeMappings() { + checkIsReady(); return attributeMappings; }