Repository navigation
Expand file tree
/
Copy pathTBuilding.java
More file actions
105 lines (85 loc) · 1.95 KB
/
Copy pathTBuilding.java
File metadata and controls
105 lines (85 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import javax.persistence.*;
import java.util.Date;
/**
* 楼盘主表
*/
@Entity
@Table(name = "t_building")
public class TBuilding {
/**
* 主键 ID
*/
@Column(name = "id")
@Id
@GeneratedValue(strategy = javax.persistence.GenerationType.AUTO)
private Long id;
/**
* 名字
*/
@Column(name = "name")
private String name;
/**
* 销售状态 1-在售, 2-待售, 3-售罄
*/
@Column(name = "sale_status")
private Integer saleStatus;
/**
* 占地面积:单位平方分米
*/
@Column(name = "floor_space")
private Long floorSpace;
/**
* 排序 999-普通排序,1,2,....10(数字越小越靠前)
*/
@Column(name = "building_sort")
private Integer buildingSort;
/**
* 发证时间
*/
@Column(name = "card_date")
private Date cardDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getSalestatus() {
return saleStatus;
}
public void setSalestatus(Integer salestatus) {
this.saleStatus = salestatus;
}
public Long getFloorspace() {
return floorSpace;
}
public void setFloorspace(Long floorspace) {
this.floorSpace = floorspace;
}
public Integer getBuildingsort() {
return buildingSort;
}
public void setBuildingsort(Integer buildingsort) {
this.buildingSort = buildingsort;
}
public Date getCarddate() {
return cardDate;
}
public void setCarddate(Date carddate) {
this.cardDate = carddate;
}
public TBuilding() {
this.id = null;
this.name = null;
this.saleStatus = 0;
this.floorSpace = 0L;
this.buildingSort = 999;
this.cardDate = new Date();
}
}