HHH-7049 - Add tests of org.hibernate.metamodel.internal.source stuff
This commit is contained in:
parent
01eec1fbd2
commit
6803e63460
|
@ -120,13 +120,15 @@ public class RootEntitySourceImpl extends AbstractEntitySourceImpl implements Ro
|
|||
public List<AttributeSource> attributeSources() {
|
||||
List<AttributeSource> attributeSources = new ArrayList<AttributeSource>();
|
||||
final JaxbHibernateMapping.JaxbClass.JaxbNaturalId naturalId = entityElement().getNaturalId();
|
||||
processAttributes(
|
||||
attributeSources,
|
||||
naturalId.getPropertyOrManyToOneOrComponent(),
|
||||
naturalId.isMutable()
|
||||
? SingularAttributeSource.NaturalIdMutability.MUTABLE
|
||||
: SingularAttributeSource.NaturalIdMutability.IMMUTABLE
|
||||
);
|
||||
if ( naturalId != null ) {
|
||||
processAttributes(
|
||||
attributeSources,
|
||||
naturalId.getPropertyOrManyToOneOrComponent(),
|
||||
naturalId.isMutable()
|
||||
? SingularAttributeSource.NaturalIdMutability.MUTABLE
|
||||
: SingularAttributeSource.NaturalIdMutability.IMMUTABLE
|
||||
);
|
||||
}
|
||||
processAttributes( attributeSources );
|
||||
return attributeSources;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue