only read in options if the relation is actually an object relation (not primitive)
This commit is contained in:
parent
9d78bde488
commit
fb14b6755f
1 changed files with 40 additions and 36 deletions
|
@ -138,6 +138,9 @@ public class Relation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// the following options only apply to object relations
|
||||||
|
if (direction != PRIMITIVE && direction != INVALID) {
|
||||||
String loading = props.getProperty (propname+".loadmode");
|
String loading = props.getProperty (propname+".loadmode");
|
||||||
aggressiveLoading = loading != null && "aggressive".equalsIgnoreCase (loading.trim());
|
aggressiveLoading = loading != null && "aggressive".equalsIgnoreCase (loading.trim());
|
||||||
String caching = props.getProperty (propname+".cachemode");
|
String caching = props.getProperty (propname+".cachemode");
|
||||||
|
@ -178,6 +181,7 @@ public class Relation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isReference () {
|
public boolean isReference () {
|
||||||
return direction > PRIMITIVE;
|
return direction > PRIMITIVE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue