com.github.mybatis.util.PersistMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-spring-support Show documentation
Show all versions of mybatis-spring-support Show documentation
using mybatis lib, add spring support
The newest version!
package com.github.mybatis.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Map;
/**
* 存储的元信息
*
* Created by lirui on 2014/10/23.
*/
public class PersistMeta {
/**
* 数据库表名字
*/
private String tableName;
/**
* 列名字到Field的映射
*/
private Map columns;
/**
* 执行某个函数获取表名后缀
*/
private Method postfix;
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public Map getColumns() {
return columns;
}
public void setColumns(Map columns) {
this.columns = columns;
}
public Method getPostfix() {
return postfix;
}
public void setPostfix(Method postfix) {
this.postfix = postfix;
}
}