/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!this.isInstantiated) { instantiate(); } Object oldValue = getValue(); super.setValue(theValue); updateForeignReferenceSet(theValue, oldValue); }
/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!this.isInstantiated) { instantiate(); } Object oldValue = getValue(); super.setValue(theValue); updateForeignReferenceSet(theValue, oldValue); }
/** * Ensure that the backup value holder is populated. */ public void setValue(Object theValue) { // Must force instantiation to be able to compare with the old value. if (!isInstantiated()) { instantiate(); } Object oldValue = getValue(); super.setValue(theValue); updateForeignReferenceSet(theValue, oldValue); }
if (otoMapping.getSourceToTargetKeyFields() != null) { DatabaseField fField = otoMapping.getSourceToTargetKeyFields().get(field); Object targetEntity = holder.getValue(); EntityDesc fDesc = EntityDescFactory.getEntityDesc(targetEntity.getClass()); AttributeDesc faDesc = fDesc.getAttributeDesc(fField.getName());