// Path: QuickProject-Util/src/main/java/chanedi/util/StringUtils.java
// public class StringUtils extends org.apache.commons.lang3.StringUtils {
// 
//     public static String capitalizeCamelBySeparator(String str, String separatorChars) {
//         if (str == null || str.length() == 0) {
//             return str;
//         }
//         String[] splits = str.toLowerCase().split(separatorChars);
//         StringBuffer result = new StringBuffer();
//         for (String split : splits) {
//             result.append(capitalize(split));
//         }
//         return result.toString();
//     }
// 
//     public static String uncapitalizeCamelBySeparator(String str, String separatorChars) {
//         return uncapitalize(capitalizeCamelBySeparator(str, separatorChars));
//     }
// 
// }


import chanedi.util.StringUtils;
import lombok.Getter;
import lombok.Setter;
package chanedi.generator.model;


/**
 * @author Chanedi
 */
public class Property {

    @Getter
    private String name;
    @Getter
    private String capitalizeName;
    @Getter
    private String columnName;
    @Getter@Setter
    private String comment;
    @Getter@Setter
    private PropertyType type;

    public void setColumnName(String columnName) {
        this.columnName = columnName;
// Path: QuickProject-Util/src/main/java/chanedi/util/StringUtils.java
// public class StringUtils extends org.apache.commons.lang3.StringUtils {
// 
//     public static String capitalizeCamelBySeparator(String str, String separatorChars) {
//         if (str == null || str.length() == 0) {
//             return str;
//         }
//         String[] splits = str.toLowerCase().split(separatorChars);
//         StringBuffer result = new StringBuffer();
//         for (String split : splits) {
//             result.append(capitalize(split));
//         }
//         return result.toString();
//     }
// 
//     public static String uncapitalizeCamelBySeparator(String str, String separatorChars) {
//         return uncapitalize(capitalizeCamelBySeparator(str, separatorChars));
//     }
// 
// }


// Path: QuickProject-Generator/src/main/java/chanedi/generator/model/Property.java
import chanedi.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

package chanedi.generator.model;


/**
 * @author Chanedi
 */
public class Property {

    @Getter
    private String name;
    @Getter
    private String capitalizeName;
    @Getter
    private String columnName;
    @Getter@Setter
    private String comment;
    @Getter@Setter
    private PropertyType type;

    public void setColumnName(String columnName) {
        this.columnName = columnName;
        this.name = StringUtils.uncapitalizeCamelBySeparator(columnName, "_");