Skip to content

Instantly share code, notes, and snippets.

@BenDol
Created August 6, 2015 02:22
Show Gist options
  • Save BenDol/8b0de50006e4f1f48200 to your computer and use it in GitHub Desktop.
Save BenDol/8b0de50006e4f1f48200 to your computer and use it in GitHub Desktop.
@MappedSuperclass
public abstract class BaseSetting extends Model {
@NotNull
@Size(min = 5)
String name;
@Basic
String description;
@NotNull
String value;
@NotNull
@Enumerated(EnumType.ORDINAL)
SettingType type = SettingType.STRING;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public SettingType getType() {
return type;
}
public void setType(SettingType type) {
this.type = type;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment