HHH-6320 : Add boolean values and getters to EntityIdentifier indicating if an ID is embedded or "identifier mapper"
This commit is contained in:
parent
f12aad3493
commit
496b508c73
|
@ -48,6 +48,8 @@ public class EntityIdentifier {
|
||||||
private SimpleAttributeBinding attributeBinding;
|
private SimpleAttributeBinding attributeBinding;
|
||||||
private IdentifierGenerator identifierGenerator;
|
private IdentifierGenerator identifierGenerator;
|
||||||
private IdGenerator idGenerator;
|
private IdGenerator idGenerator;
|
||||||
|
private boolean isEmbedded;
|
||||||
|
private boolean isIdentifierMapper;
|
||||||
// todo : mappers, etc
|
// todo : mappers, etc
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -76,6 +78,14 @@ public class EntityIdentifier {
|
||||||
this.idGenerator = idGenerator;
|
this.idGenerator = idGenerator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isEmbedded() {
|
||||||
|
return isEmbedded;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isIdentifierMapper() {
|
||||||
|
return isIdentifierMapper;
|
||||||
|
}
|
||||||
|
|
||||||
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory factory) {
|
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory factory) {
|
||||||
if ( identifierGenerator == null ) {
|
if ( identifierGenerator == null ) {
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
|
|
Loading…
Reference in New Issue