question: 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 ) ; } }
target:  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.