You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gym/ConfigEntity.java

61 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.entity;
import java.io.Serializable; // Java序列化支持
import com.baomidou.mybatisplus.annotations.TableId; // 主键注解
import com.baomidou.mybatisplus.annotations.TableName; // 表名注解
import com.baomidou.mybatisplus.enums.IdType; // ID类型枚举
@TableName("config")
public class ConfigEntity implements Serializable {
// 序列化版本UID保证序列化兼容性
private static final long serialVersionUID = 1L;
// 主键ID自增
// 使用MyBatis-Plus的数据库ID自增策略
@TableId(type = IdType.AUTO)
private Long id;
// 配置项名称(唯一标识)
// 存储配置的键名称,具有唯一性约束
private String name;
// 配置项值
// 存储与配置名称对应的具体配置值
private String value;
// 获取主键ID
// @return 主键ID
public Long getId() {
return id;
}
// 设置主键ID
// @param id 主键ID
public void setId(Long id) {
this.id = id;
}
// 获取配置项名称
// @return 配置项名称
public String getName() {
return name;
}
// 设置配置项名称
// @param name 配置项名称
public void setName(String name) {
this.name = name;
}
// 获取配置项值
// @return 配置项值
public String getValue() {
return value;
}
// 设置配置项值
// @param value 配置项值
public void setValue(String value) {
this.value = value;
}
}