only read in options if the relation is actually an object relation (not primitive)

This commit is contained in:
hns 2001-08-03 14:46:18 +00:00
parent 9d78bde488
commit fb14b6755f

View file

@ -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");
aggressiveLoading = loading != null && "aggressive".equalsIgnoreCase (loading.trim());
String caching = props.getProperty (propname+".cachemode");
@ -178,6 +181,7 @@ public class Relation {
}
}
}
}
public boolean isReference () {
return direction > PRIMITIVE;