cn.featherfly.hammer.mapping.PropertyNameUnderlineConversion Maven / Gradle / Ivy
package cn.featherfly.hammer.mapping;
import cn.featherfly.common.bean.BeanProperty;
import cn.featherfly.common.lang.WordUtils;
import cn.featherfly.hammer.mapping.PropertyNameConversion;
/**
*
* PropertyNameUnderlineConversion use _ join type every word. ClassNameMapping
* as class_name_mapping
*
*
* @author zhongj
* @since 0.1.0
* @version 0.1.0
*/
public class PropertyNameUnderlineConversion implements PropertyNameConversion {
/**
* {@inheritDoc}
*/
@Override
public String getMappingName(BeanProperty> type) {
return WordUtils.addSignBeforeUpper(type.getName(), '_', true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy