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

cool.scx.jdbc.ColumnMapping Maven / Gradle / Ivy

There is a newer version: 2.7.4
Show newest version
package cool.scx.jdbc;

import cool.scx.jdbc.mapping.Column;

import java.lang.reflect.Field;

/**
 * Column Field 之间的映射
 *
 * @author scx567888
 * @version 0.1.3
 */
public interface ColumnMapping extends Column {

    Field javaField();

    default Object javaFieldValue(Object target) {
        try {
            return this.javaField().get(target);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy