private void correct1to1Detail ( ) { String [ ] hasManyTables = model . getHasMany ( ) ; for ( String hasMany : hasManyTables ) { if ( shouldBeMoved ( model , hasMany ) ) { model = moveFromHasManyToHasOne ( model , hasMany ) ; } } }
If the localColum of that hasMany table is the primary attributes AND it refer to the primary column of this table