code: private static boolean isCollectionMatching(Joinable mainSideJoinable, OgmCollectionPersister inverseSidePersister) {
  		boolean isSameTable = mainSideJoinable.getTableName().equals( inverseSidePersister.getTableName() );
  
  		if ( !isSameTable ) {
  			return false;
  		}
  
  		return Arrays.equals( mainSideJoinable.getKeyColumnNames(), inverseSidePersister.getElementColumnNames() );
  	}
docs: Checks whether table name and key column names of the given joinable and inverse collection persister match.