Overload the constructor of Option entity

pull/755/head
johnniang 2019-12-03 20:20:32 +08:00
parent a3e866f797
commit f0b94a621d
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ public class Option extends BaseEntity {
@Column(name = "option_value", columnDefinition = "varchar(1023) not null")
private String value;
public Option(String key, String value) {
this.key = key;
this.value = value;
}
public Option(OptionType type, String key, String value) {
this.type = type;
this.key = key;