Created
August 6, 2015 02:22
-
-
Save BenDol/8b0de50006e4f1f48200 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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