isLazyEntityType method
Returns true
if entityType
load is lazy.
def
is returned in case there's not rule forentityType
.
Implementation
bool isLazyEntityType(Type entityType, [bool def = false]) {
var allLazy = this.allLazy;
if (allLazy != null && allLazy && !isEagerEntityType(entityType)) {
return true;
}
var lazyEntityTypes = this.lazyEntityTypes;
if (lazyEntityTypes != null && lazyEntityTypes.contains(entityType)) {
return true;
}
var eagerEntityTypes = this.eagerEntityTypes;
if (eagerEntityTypes != null && eagerEntityTypes.contains(entityType)) {
return false;
}
return def;
}