Last change
on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[fdfbdde] | 1 | package com.example.task.entity.event;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 | import lombok.AllArgsConstructor;
|
---|
| 5 | import lombok.Getter;
|
---|
| 6 | import lombok.NoArgsConstructor;
|
---|
| 7 | import lombok.Setter;
|
---|
| 8 |
|
---|
| 9 | import java.sql.Time;
|
---|
| 10 |
|
---|
| 11 | @Entity
|
---|
| 12 | @Table(name = "calendar_event", schema = "project")
|
---|
| 13 | @NoArgsConstructor
|
---|
| 14 | @AllArgsConstructor
|
---|
| 15 | @Getter
|
---|
| 16 | @Setter
|
---|
| 17 | public class CalendarEvent {
|
---|
| 18 |
|
---|
| 19 | @Id
|
---|
| 20 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 21 | @Column(name = "calendar_event_id")
|
---|
| 22 | private Integer id;
|
---|
| 23 |
|
---|
| 24 | @Column(name = "event_name")
|
---|
| 25 | private String name;
|
---|
| 26 |
|
---|
| 27 | @Column(name = "event_type")
|
---|
| 28 | private String type;
|
---|
| 29 |
|
---|
| 30 | @Column(name = "event_description")
|
---|
| 31 | private String description;
|
---|
| 32 |
|
---|
| 33 | @Column(name = "event_start_time")
|
---|
| 34 | private Time startTime;
|
---|
| 35 |
|
---|
| 36 | @Column(name = "event_end_time")
|
---|
| 37 | private Time endTime;
|
---|
| 38 |
|
---|
| 39 | public CalendarEvent(String name, String type, String description, Time startTime, Time endTime) {
|
---|
| 40 | this.name = name;
|
---|
| 41 | this.type = type;
|
---|
| 42 | this.description = description;
|
---|
| 43 | this.startTime = startTime;
|
---|
| 44 | this.endTime = endTime;
|
---|
| 45 | }
|
---|
| 46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.