protected void processOwningMappingKeys(OneToOneMapping mapping){
  if (derivesId()) {
    processForeignKeyRelationship(mapping);
    if (hasMapsId()) {
      processMapsId(mapping);
    }
 else {
      processId(mapping);
    }
  }
 else   if (isOneToOnePrimaryKeyRelationship()) {
    processOneToOnePrimaryKeyRelationship(mapping);
  }
 else   if (hasJoinTable()) {
    mapping.setRelationTableMechanism(new RelationTableMechanism());
    processJoinTable(mapping,mapping.getRelationTableMechanism(),getJoinTableMetadata());
  }
 else {
    processForeignKeyRelationship(mapping);
  }
}

protected void processOwningMappingKeys ( OneToOneMapping mapping ) { if ( derivesId ( ) ) { processForeignKeyRelationship ( mapping ) ; if ( hasMapsId ( ) ) { processMapsId ( mapping ) ; } else { processId ( mapping ) ; } } else if ( isOneToOnePrimaryKeyRelationship ( ) ) { processOneToOnePrimaryKeyRelationship ( mapping ) ; } else if ( hasJoinTable ( ) ) { mapping . setRelationTableMechanism ( new RelationTableMechanism ( ) ) ; processJoinTable ( mapping , mapping . getRelationTableMechanism ( ) , getJoinTableMetadata ( ) ) ; } else { processForeignKeyRelationship ( mapping ) ; } }
internal : process the the correct metadata for the owning side of a one to one mapping . note , the order of checking is important , that is , check for a mapsid first .
