From 9201ee7109ea3009cc94cfe83832afccd2497f8f Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 23 Jan 2024 13:26:16 +0100 Subject: [PATCH] HHH-17644 Mapping of generic types in single table inheritance depends on lexicographical order of parent and child classnames --- .../org/hibernate/boot/model/internal/PropertyContainer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/PropertyContainer.java b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/PropertyContainer.java index 2b0083c318..3248eee16f 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/PropertyContainer.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/PropertyContainer.java @@ -19,6 +19,7 @@ import java.util.TreeMap; import org.hibernate.AnnotationException; import org.hibernate.annotations.JavaType; +import org.hibernate.annotations.JdbcTypeCode; import org.hibernate.annotations.ManyToAny; import org.hibernate.annotations.Target; import org.hibernate.annotations.Type; @@ -436,6 +437,9 @@ public class PropertyContainer { else if ( property.isAnnotationPresent( JavaType.class ) ) { return true; } + else if ( property.isAnnotationPresent( JdbcTypeCode.class ) ) { + return true; + } else if ( property.isAnnotationPresent( Target.class ) ) { return true; }