com.github.chengyuxing.sql.yaml.HyphenatedPropertyUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbit-sql Show documentation
Show all versions of rabbit-sql Show documentation
Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql
file.
package com.github.chengyuxing.sql.yaml;
import com.github.chengyuxing.common.utils.StringUtil;
import org.yaml.snakeyaml.introspector.Property;
import org.yaml.snakeyaml.introspector.PropertyUtils;
/**
* Yaml hyphen properties tool.
*/
public class HyphenatedPropertyUtil extends PropertyUtils {
@Override
public Property getProperty(Class> type, String name) {
setSkipMissingProperties(true);
return super.getProperty(type, StringUtil.camelize(name));
}
}