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

com.jpattern.orm.annotation.column.InferedColumnName Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package com.jpattern.orm.annotation.column;

import com.jpattern.orm.util.FieldDefaultNaming;

/**
 * return the column name generated from a java field name
 * 
 * @author cinafr
 *
 */
public class InferedColumnName implements ColumnInfo {

	private final String columnName;

	public InferedColumnName(final String javaFieldName) {
		this.columnName = FieldDefaultNaming.getJavanameToDBnameDefaultMapping(javaFieldName);
	}

	@Override
	public String getDBColumnName() {
		return this.columnName;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy