protected void addFieldNameTranslation(EmbeddableMapping embeddableMapping,String overrideName,DatabaseField overrideField,MappingAccessor aggregatesAccessor){
  DatabaseMapping aggregatesMapping=aggregatesAccessor.getMapping();
  DatabaseField aggregatesMappingField=aggregatesMapping.getField();
  if (aggregatesAccessor.isId()) {
    updatePrimaryKeyField(aggregatesAccessor,overrideField);
  }
  if (overrideName.contains(".")) {
    embeddableMapping.addNestedFieldTranslation(overrideName,overrideField,aggregatesMappingField.getName());
  }
 else {
    embeddableMapping.addFieldTranslation(overrideField,aggregatesMappingField.getName());
  }
}

protected void addFieldNameTranslation ( EmbeddableMapping embeddableMapping , String overrideName , DatabaseField overrideField , MappingAccessor aggregatesAccessor ) { DatabaseMapping aggregatesMapping = aggregatesAccessor . getMapping ( ) ; DatabaseField aggregatesMappingField = aggregatesMapping . getField ( ) ; if ( aggregatesAccessor . isId ( ) ) { updatePrimaryKeyField ( aggregatesAccessor , overrideField ) ; } if ( overrideName . contains ( "." ) ) { embeddableMapping . addNestedFieldTranslation ( overrideName , overrideField , aggregatesMappingField . getName ( ) ) ; } else { embeddableMapping . addFieldTranslation ( overrideField , aggregatesMappingField . getName ( ) ) ; } }
internal : process an attribute override for either an embedded object mapping , or an element collection mapping containing embeddable objects .
