mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
72 lines
1.3 KiB
Java
72 lines
1.3 KiB
Java
package im.zhaojun.common.model;
|
|
|
|
import im.zhaojun.common.model.enums.StorageTypeEnum;
|
|
import lombok.Data;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
/**
|
|
* @author zhaojun
|
|
*/
|
|
@Entity(name = "STORAGE_CONFIG")
|
|
@Data
|
|
public class StorageConfig {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Integer id;
|
|
|
|
private StorageTypeEnum type;
|
|
|
|
@Column(name = "k")
|
|
private String key;
|
|
|
|
private String title;
|
|
|
|
@Column(length = 2048)
|
|
private String value;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public StorageTypeEnum getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(StorageTypeEnum type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
|
|
public void setKey(String key) {
|
|
this.key = key;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String value) {
|
|
this.value = value;
|
|
}
|
|
} |