You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.6 KiB
82 lines
1.6 KiB
package com.prj.domain;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
import javax.persistence.*;
|
|
|
|
@Entity
|
|
@Table(name="hire_num")
|
|
public class HireNum
|
|
{
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/** 编号 */
|
|
@Id
|
|
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
/** 部门 */
|
|
@Column(name = "dept")
|
|
private String dept;
|
|
|
|
/** 招人名额 */
|
|
@Column(name = "num")
|
|
private BigDecimal num;
|
|
|
|
/** 截止时间 */
|
|
@Column(name = "endtime")
|
|
private String endtime;
|
|
|
|
public void setId(Long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId()
|
|
{
|
|
return id;
|
|
}
|
|
public void setDept(String dept)
|
|
{
|
|
this.dept = dept;
|
|
}
|
|
|
|
public String getDept()
|
|
{
|
|
return dept;
|
|
}
|
|
public void setNum(BigDecimal num)
|
|
{
|
|
this.num = num;
|
|
}
|
|
|
|
public BigDecimal getNum()
|
|
{
|
|
return num;
|
|
}
|
|
public void setEndtime(String endtime)
|
|
{
|
|
this.endtime = endtime;
|
|
}
|
|
|
|
public String getEndtime()
|
|
{
|
|
return endtime;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
|
.append("id", getId())
|
|
.append("dept", getDept())
|
|
.append("num", getNum())
|
|
.append("endtime", getEndtime())
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
|