HHH-6320 : Add boolean values and getters to EntityIdentifier indicating if an ID is embedded or "identifier mapper"

This commit is contained in:
Gail Badner 2011-06-14 15:20:44 -07:00
parent f12aad3493
commit 496b508c73
1 changed files with 10 additions and 0 deletions

View File

@ -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();