package pl.net.bluesoft.rnd.processtool.model.config; import org.hibernate.annotations.*; import pl.net.bluesoft.rnd.processtool.model.AbstractPersistentEntity; import pl.net.bluesoft.rnd.processtool.model.PersistentEntity; import javax.persistence.*; import javax.persistence.Entity; import javax.persistence.Parameter; import javax.persistence.Table; @Entity @Table(name="pt_setting") public class ProcessToolSetting extends AbstractPersistentEntity { @Id @GeneratedValue(generator = "idGenerator") @GenericGenerator( name = "idGenerator", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = { @org.hibernate.annotations.Parameter(name = "initial_value", value = "" + 1), @org.hibernate.annotations.Parameter(name = "value_column", value = "_DB_ID"), @org.hibernate.annotations.Parameter(name = "sequence_name", value = "DB_SEQ_ID_PT_SETTING") } ) @Column(name = "id") protected Long id; @Column(name="key_") private String key; @Column(name="value_") private String value; private String description; public Long getId() { return id; } public void setId(Long id) { this.id = id; } 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; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }