Fix bug where xxx.readonly and xxx.private where not read correctly.

Yep, that's right, these two did not work so far.
This commit is contained in:
hns 2002-09-20 17:06:44 +00:00
parent ad6221e101
commit 7938ab4e8d

View file

@ -51,6 +51,7 @@ public final class Relation {
boolean aggressiveCaching; boolean aggressiveCaching;
boolean subnodesAreProperties; boolean subnodesAreProperties;
boolean isPrivate; boolean isPrivate;
String accessor; // db column used to access objects through this relation String accessor; // db column used to access objects through this relation
String order; String order;
String groupbyorder; String groupbyorder;
@ -131,13 +132,13 @@ public final class Relation {
reftype = PRIMITIVE; reftype = PRIMITIVE;
} }
} }
String rdonly = props.getProperty (desc+".readonly"); String rdonly = props.getProperty (propName+".readonly");
if (rdonly != null && "true".equalsIgnoreCase (rdonly)) { if (rdonly != null && "true".equalsIgnoreCase (rdonly)) {
readonly = true; readonly = true;
} else { } else {
readonly = false; readonly = false;
} }
isPrivate = "true".equalsIgnoreCase (props.getProperty (desc+".private")); isPrivate = "true".equalsIgnoreCase (props.getProperty (propName+".private"));
// the following options only apply to object and collection relations // the following options only apply to object and collection relations
if (reftype != PRIMITIVE && reftype != INVALID) { if (reftype != PRIMITIVE && reftype != INVALID) {