package tudu.domain; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; /** * A property, used to hold the application configuration. * * @author Julien Dubois */ @Entity @Table(name = "property") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Property implements Serializable { private static final long serialVersionUID = 3434972458764657217L; @Id @Column(name = "pkey") private String key; private String value; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }