-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTable.java
More file actions
68 lines (62 loc) · 1.22 KB
/
Table.java
File metadata and controls
68 lines (62 loc) · 1.22 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
package fsm.domain;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
public class Table {
@Id
@GeneratedValue
@Column(name="id")
int id;
@ManyToOne
@JoinColumn(name="floor_id")
int floorId;
@Column(name="top_left_x")
int topLeftX;
@Column(name="top_left_y")
int topLeftY;
@Column(name="width")
int width;
@Column(name="length")
int length;
public Table() {
super();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getFloorId() {
return floorId;
}
public void setFloorId(int floorId) {
this.floorId = floorId;
}
public int getTopLeftX() {
return topLeftX;
}
public void setTopLeftX(int topLeftX) {
this.topLeftX = topLeftX;
}
public int getTopLeftY() {
return topLeftY;
}
public void setTopLeftY(int topLeftY) {
this.topLeftY = topLeftY;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
}