All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.easyproject.easyee.auto.generator.Utils Maven / Gradle / Ivy

package cn.easyproject.easyee.auto.generator;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Utils {
	static Pattern p=Pattern.compile("([a-z])([A-Z])");
	public static String escapeToMyBatisName(String str){
		Matcher matcher=p.matcher(str);
		return matcher.replaceAll("$1_$2");
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy