Fix for #80 - Exposing discriminator value in entity bean throws

exception when updating or deleting
This commit is contained in:
Rob Bygrave committed 2014-03-31 22:49:44 +13:00
1 parent 34347fc3e1
commit 18961047a1
4 files changed
+86

No files matched your search

@@ -47,12 +47,16 @@ public class FactoryBaseProperties {
for (int i = 0; i < props.length; i++) {
if(DmlMode.WHERE.equals(mode) && !withLobs && !props[i].isDbUpdatable()) {
// skip non-updatable column from where clause
} else {
Bindable item = factoryProperty.create(props[i], mode, withLobs);
if (item != null) {
list.add(item);
} else {
// null where readOnly (Secondary tables) or Lob exclusion
}
}
}
}