14 package cz.vutbr.fit.knot.annotations.entity;
16 import java.io.Serializable;
17 import javax.persistence.*;
26 @Table(name =
"defaultSettings")
28 @NamedQuery(name =
"DefaultSettings.findAll", query =
"SELECT s FROM DefaultSettings s"),
29 @NamedQuery(name =
"DefaultSettings.findById", query =
"SELECT s FROM DefaultSettings s WHERE s.id = :id"),
30 @NamedQuery(name =
"DefaultSettings.findByName", query =
"SELECT s FROM DefaultSettings s WHERE s.name = :name"),
31 @NamedQuery(name =
"DefaultSettings.findByValue", query =
"SELECT s FROM DefaultSettings s WHERE s.value = :value")})
33 private static final long serialVersionUID = 1L;
36 @GeneratedValue(strategy = GenerationType.IDENTITY)
37 @Basic(optional =
false)
42 @Basic(optional = false)
43 @Column(name = "name")
47 @Basic(optional = false)
48 @Column(name = "paramValue")
52 @Basic(optional = true)
54 @Column(name = "description")
55 private String description;
81 this.description =
"";
94 this.description = description;
166 this.description = description;
175 String[] result = name.split(
":");
176 if(result.length == 2)
return true;
183 hash += (
id != null ? id.hashCode() : 0);
196 if (!(
object instanceof
Settings)) {
200 if ((this.
id == null && other.
id != null) || (this.id != null && !this.id.equals(other.id))) {
208 return "cz.vutbr.fit.knot.annotations.entity.DefaultSettings[id=" +
id +
"]";
DefaultSettings(Integer id)
void setName(String name)
Class representing parameter of user settings.
void setValue(String value)
DefaultSettings(String name, String value)
Class representing parameter of default user settings.
void setDescription(String description)
DefaultSettings(String name, String value, String description)
boolean equals(Object object)