/** * INTERNAL: * Rehash any map based on fields. * This is used to clone descriptors for aggregates, which hammer field names, * it is probably better not to hammer the field name and this should be refactored. */ @Override public void rehashFieldDependancies(AbstractSession session) { setSourceToTargetKeyFields(Helper.rehashMap(getSourceToTargetKeyFields())); // Go through the fks again and make updates for any translated fields. for (DatabaseField field : getSourceToTargetKeyFields().keySet()) { if (field.isTranslated()) { updateInsertableAndUpdatableFields(field); } } }
/** * INTERNAL: * Rehash any map based on fields. * This is used to clone descriptors for aggregates, which hammer field names, * it is probably better not to hammer the field name and this should be refactored. */ @Override public void rehashFieldDependancies(AbstractSession session) { setSourceToTargetKeyFields(Helper.rehashMap(getSourceToTargetKeyFields())); // Go through the fks again and make updates for any translated fields. for (DatabaseField field : getSourceToTargetKeyFields().keySet()) { if (field.isTranslated()) { updateInsertableAndUpdatableFields(field); } } }
updateInsertableAndUpdatableFields(builtField); } else { updateInsertableAndUpdatableFields(field);
updateInsertableAndUpdatableFields(builtField); } else { updateInsertableAndUpdatableFields(field);