code: public static Pair<Set<GeneratedTypeElement>, Set<GeneratedTypeElement>> generate(Filer filer, M2MModel model)
  			 {
  		entityResult.clear();
  		daoResult.clear();
  		BindM2MBuilder visitor = new BindM2MBuilder(filer);
  
  		for (M2MEntity item : model.getEntities()) {
  			visitor.generate(item);
  		}
  
  		Pair<Set<GeneratedTypeElement>, Set<GeneratedTypeElement>> result = new Pair<>();
  		result.value0 = entityResult;
  		result.value1 = daoResult;
  
  		return result;
  	}
docs: Generate.
  
  @param filer
  the filer
  @param model
  the model
  @return the pair
  @throws Exception
  the exception