去除实体类中的警告

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; private String id;
/** /**

View File

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

View File

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

View File

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