cn.easyproject.easyee.auto.generator.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyee-auto Show documentation
Show all versions of easyee-auto Show documentation
Code Auto Generator for EasyEE Open Source JavaEE Enterprise Basic Development Platform(https://github.com/ushelp/EasyEE).
The newest version!
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