Last change
on this file since a436340 was cf9cdbf, checked in by Gjoko <goko_kostadinov@…>, 21 months ago |
Initial commit.
|
-
Property mode
set to
100644
|
File size:
737 bytes
|
Line | |
---|
1 | package edu.gjoko.schedlr.entity;
|
---|
2 |
|
---|
3 | import lombok.AllArgsConstructor;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.NoArgsConstructor;
|
---|
6 | import lombok.Setter;
|
---|
7 |
|
---|
8 | import javax.persistence.*;
|
---|
9 | import java.time.LocalDateTime;
|
---|
10 |
|
---|
11 | @Entity
|
---|
12 | @Table(name = "appointment")
|
---|
13 | @Getter
|
---|
14 | @Setter
|
---|
15 | @NoArgsConstructor
|
---|
16 | @AllArgsConstructor
|
---|
17 | public class Appointment {
|
---|
18 |
|
---|
19 | @Id
|
---|
20 | @GeneratedValue(strategy = GenerationType.AUTO)
|
---|
21 | private Long id;
|
---|
22 |
|
---|
23 | @Column(name = "start_type")
|
---|
24 | private LocalDateTime startTime;
|
---|
25 |
|
---|
26 | @Column(name = "end_time")
|
---|
27 | private LocalDateTime endTime;
|
---|
28 |
|
---|
29 | @Column(name = "price")
|
---|
30 | private Float price;
|
---|
31 |
|
---|
32 | @Column(name = "created")
|
---|
33 | private LocalDateTime created;
|
---|
34 |
|
---|
35 | @Column(name = "modified")
|
---|
36 | private LocalDateTime modified;
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.