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

cn.featherfly.hammer.mapping.PropertyNameUnderlineConversion Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version

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