/** * Set Resource * * @param parent resource * @return true if changed */ public boolean setResource(MResource parent) { boolean changed = false; if (!PRODUCTTYPE_Resource.equals(getProductType())) { setProductType(PRODUCTTYPE_Resource); changed = true; } if (parent.getS_Resource_ID() != getS_Resource_ID()) { setS_Resource_ID(parent.getS_Resource_ID()); changed = true; } if (parent.isActive() != isActive()) { setIsActive(parent.isActive()); changed = true; } // if (!parent.getValue().equals(getValue())) { setValue(parent.getValue()); changed = true; } if (!parent.getName().equals(getName())) { setName(parent.getName()); changed = true; } if ((parent.getDescription() == null && getDescription() != null) || (parent.getDescription() != null && !parent.getDescription().equals(getDescription()))) { setDescription(parent.getDescription()); changed = true; } // return changed; } // setResource