mirror of https://github.com/halo-dev/halo
Overload the constructor of Option entity
parent
a3e866f797
commit
f0b94a621d
|
@ -45,6 +45,11 @@ public class Option extends BaseEntity {
|
||||||
@Column(name = "option_value", columnDefinition = "varchar(1023) not null")
|
@Column(name = "option_value", columnDefinition = "varchar(1023) not null")
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
public Option(String key, String value) {
|
||||||
|
this.key = key;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
public Option(OptionType type, String key, String value) {
|
public Option(OptionType type, String key, String value) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.key = key;
|
this.key = key;
|
||||||
|
|
Loading…
Reference in New Issue