去除实体类中的警告

This commit is contained in:
huangge1199 2025-08-06 14:41:12 +08:00
parent 6080583faf
commit ab56d1ae9b
4 changed files with 49 additions and 4 deletions

View File

@ -23,7 +23,6 @@ public class Analysis {
/**
* 主键
*/
@TableField(value = "id")
private String id;
/**

View File

@ -1,5 +1,6 @@
package iet.ustb.sf.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -8,127 +9,151 @@ import lombok.Data;
* @author hyy
* @TableName columns
*/
@TableName(value ="information_schema.columns")
@TableName(value ="columns")
@Data
public class Columns {
/**
*
*/
@TableField(value = "TABLE_CATALOG")
private String tableCatalog;
/**
*
*/
@TableField(value = "TABLE_SCHEMA")
private String tableSchema;
/**
*
*/
@TableField(value = "TABLE_NAME")
private String tableName;
/**
*
*/
@TableField(value = "COLUMN_NAME")
private String columnName;
/**
*
*/
@TableField(value = "ORDINAL_POSITION")
private Long ordinalPosition;
/**
*
*/
@TableField(value = "COLUMN_DEFAULT")
private String columnDefault;
/**
*
*/
@TableField(value = "IS_NULLABLE")
private String isNullable;
/**
*
*/
@TableField(value = "DATA_TYPE")
private String dataType;
/**
*
*/
@TableField(value = "CHARACTER_MAXIMUM_LENGTH")
private Long characterMaximumLength;
/**
*
*/
@TableField(value = "CHARACTER_OCTET_LENGTH")
private Long characterOctetLength;
/**
*
*/
@TableField(value = "NUMERIC_PRECISION")
private Long numericPrecision;
/**
*
*/
@TableField(value = "NUMERIC_SCALE")
private Long numericScale;
/**
*
*/
@TableField(value = "DATETIME_PRECISION")
private Long datetimePrecision;
/**
*
*/
@TableField(value = "CHARACTER_SET_NAME")
private String characterSetName;
/**
*
*/
@TableField(value = "COLLATION_NAME")
private String collationName;
/**
*
*/
@TableField(value = "COLUMN_TYPE")
private String columnType;
/**
*
*/
@TableField(value = "COLUMN_KEY")
private String columnKey;
/**
*
*/
@TableField(value = "EXTRA")
private String extra;
/**
*
*/
@TableField(value = "PRIVILEGES")
private String privileges;
/**
*
*/
@TableField(value = "COLUMN_COMMENT")
private String columnComment;
/**
*
*/
@TableField(value = "COLUMN_SIZE")
private Long columnSize;
/**
*
*/
@TableField(value = "DECIMAL_DIGITS")
private Long decimalDigits;
/**
*
*/
@TableField(value = "GENERATION_EXPRESSION")
private String generationExpression;
/**
*
*/
@TableField(value = "SRS_ID")
private Long srsId;
@Override

View File

@ -23,7 +23,6 @@ public class TableColumn {
/**
* 主键ID
*/
@TableField(value = "id")
private String id;
/**

View File

@ -1,5 +1,6 @@
package iet.ustb.sf.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
@ -9,112 +10,133 @@ import lombok.Data;
* @author hyy
* @TableName tables
*/
@TableName(value ="information_schema.tables")
@TableName(value ="tables")
@Data
public class Tables {
/**
*
*/
@TableField(value = "TABLE_CATALOG")
private String tableCatalog;
/**
*
*/
@TableField(value = "TABLE_SCHEMA")
private String tableSchema;
/**
*
*/
@TableField(value = "TABLE_NAME")
private String tableName;
/**
*
*/
@TableField(value = "TABLE_TYPE")
private String tableType;
/**
*
*/
@TableField(value = "ENGINE")
private String engine;
/**
*
*/
@TableField(value = "VERSION")
private Long version;
/**
*
*/
@TableField(value = "ROW_FORMAT")
private String rowFormat;
/**
*
*/
@TableField(value = "TABLE_ROWS")
private Long tableRows;
/**
*
*/
@TableField(value = "AVG_ROW_LENGTH")
private Long avgRowLength;
/**
*
*/
@TableField(value = "DATA_LENGTH")
private Long dataLength;
/**
*
*/
@TableField(value = "MAX_DATA_LENGTH")
private Long maxDataLength;
/**
*
*/
@TableField(value = "INDEX_LENGTH")
private Long indexLength;
/**
*
*/
@TableField(value = "DATA_FREE")
private Long dataFree;
/**
*
*/
@TableField(value = "AUTO_INCREMENT")
private Long autoIncrement;
/**
*
*/
@TableField(value = "CREATE_TIME")
private Date createTime;
/**
*
*/
@TableField(value = "UPDATE_TIME")
private Date updateTime;
/**
*
*/
@TableField(value = "CHECK_TIME")
private Date checkTime;
/**
*
*/
@TableField(value = "TABLE_COLLATION")
private String tableCollation;
/**
*
*/
@TableField(value = "CHECKSUM")
private Long checksum;
/**
*
*/
@TableField(value = "CREATE_OPTIONS")
private String createOptions;
/**
*
*/
@TableField(value = "TABLE_COMMENT")
private String tableComment;
@Override