-
Notifications
You must be signed in to change notification settings - Fork 0
/
AuctionEvent.java
97 lines (76 loc) · 1.96 KB
/
AuctionEvent.java
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
package com.example.demo.entity;
import java.time.LocalDate;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import java.time.LocalTime;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
public class AuctionEvent {
@Id
private int event_id;
private String category;
private String auctioneer_id;
private String email;
private String contact;
@DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDate startDate;
@DateTimeFormat(iso = DateTimeFormat.ISO.TIME)
private LocalTime startTime;
@DateTimeFormat(iso = DateTimeFormat.ISO.TIME)
private LocalTime endTime;
@OneToMany(targetEntity = Catalog.class , cascade = CascadeType.ALL)
@JoinColumn(name="fk_event_id2",referencedColumnName = "event_id")
private List<Catalog> list_event;
public int getEvent_id() {
return event_id;
}
public void setEvent_id(int event_id) {
this.event_id = event_id;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getAuctioneer_id() {
return auctioneer_id;
}
public void setAuctioneer_id(String auctioneer_id) {
this.auctioneer_id = auctioneer_id;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getContact() {
return contact;
}
public void setContact(String contact) {
this.contact = contact;
}
public LocalDate getStartDate() {
return startDate;
}
public void setStartDate(LocalDate startDate) {
this.startDate = startDate;
}
public LocalTime getStartTime() {
return startTime;
}
public void setStartTime(LocalTime startTime) {
this.startTime = startTime;
}
public LocalTime getEndTime() {
return endTime;
}
public void setEndTime(LocalTime endTime) {
this.endTime = endTime;
}
}