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

top.lingkang.mm.orm.MagicEntity Maven / Gradle / Ivy

Go to download

mybatis能力扩展框架,兼顾mybatis的mapper.xml编写操作数据库。

The newest version!
package top.lingkang.mm.orm;

import lombok.Data;
import top.lingkang.mm.annotation.Id;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

/**
 * 实体对象信息
 *
 * @Author lingkang
 * @Date 2024/3/1 10:28
 */
@Data
public class MagicEntity {
    private String tableName;
    private Class clazz;
    // id 所在列的索引
    private int idIndex = -1;
    private Id idAnn;
    private List fields = new ArrayList<>();
    private List columnName = new ArrayList<>();
    private List postUpdate;
    private List preUpdate;

    // 查询列,例如:select id, username, password from t_user
    private String selectTableSql;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy