-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDailyReport.java
More file actions
52 lines (38 loc) · 921 Bytes
/
DailyReport.java
File metadata and controls
52 lines (38 loc) · 921 Bytes
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
package model;
import javax.persistence.*;
@Entity
@Table(name = "daily_reports")
public class DailyReport {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "earnings")
private Long earnings;
@Column(name = "soldCars")
private Long soldCars;
public DailyReport() {
}
public DailyReport(Long earnings, Long soldCars) {
this.earnings = earnings;
this.soldCars = soldCars;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getEarnings() {
return earnings;
}
public void setEarnings(Long earnings) {
this.earnings = earnings;
}
public Long getSoldCars() {
return soldCars;
}
public void setSoldCars(Long soldCars) {
this.soldCars = soldCars;
}
}