diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java index f51f5786cb..051368dcf1 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/binding/EntityIdentifier.java @@ -48,6 +48,8 @@ public class EntityIdentifier { private SimpleAttributeBinding attributeBinding; private IdentifierGenerator identifierGenerator; private IdGenerator idGenerator; + private boolean isEmbedded; + private boolean isIdentifierMapper; // todo : mappers, etc /** @@ -76,6 +78,14 @@ public class EntityIdentifier { this.idGenerator = idGenerator; } + public boolean isEmbedded() { + return isEmbedded; + } + + public boolean isIdentifierMapper() { + return isIdentifierMapper; + } + public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory factory) { if ( identifierGenerator == null ) { Properties props = new Properties();