From ab0e173f0e8bab3959b6789ea5558dcea2403c37 Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Fri, 28 Jan 2011 12:33:29 -0600 Subject: [PATCH] HHH-5879 Open Core ComponentType metamodel Add a getter to isKey --- .../src/main/java/org/hibernate/type/ComponentType.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java b/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java index 8b6bba46f0..f115bd8e5f 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/ComponentType.java @@ -88,6 +88,10 @@ public class ComponentType extends AbstractType implements CompositeType { this.tuplizerMapping = metamodel.getTuplizerMapping(); } + public boolean isKey() { + return isKey; + } + public EntityModeToTuplizerMapping getTuplizerMapping() { return tuplizerMapping; }