/** * Copy each attribute from one object into the other. */ public void copyInto(Object source, Object target) { copyInto(source, target, false); }
if (shouldLoadResultIntoSelectionObject()) { ObjectBuilder builder = getDescriptor().getObjectBuilder(); builder.copyInto(cachedObject, getSelectionObject());
} else { if (query.isReadObjectQuery() && ((ReadObjectQuery)query).shouldLoadResultIntoSelectionObject()) { copyInto(domainObject, ((ReadObjectQuery)query).getSelectionObject()); domainObject = ((ReadObjectQuery)query).getSelectionObject();