fourcal/src/main/java/cn/palmte/work/model/SysConfig.java

83 lines
1.5 KiB
Java

package cn.palmte.work.model;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.Date;
/**
* 配置
*/
@Entity
@Table(name = "sys_config")
public class SysConfig {
/**
* 资金利率
*/
public static final String KEY_UNDERWRITTENTAXRATE = "underwrittenTaxRate";
/**
* 项目贡献利润率阀值
*/
public static final String KEY_PROJECTCONTRIBUTIONPROFITRATETHRESHOLD = "projectContributionProfitRateThreshold";
/**
* id
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@GenericGenerator(name = "persistenceGenerator", strategy = "increment")
private Integer id;
private String code;
private String name;
private String value;
/**
* 更新时间
*/
@Column(name = "update_time")
@Temporal(TemporalType.TIMESTAMP)
private Date updateTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}