Last change
on this file since 8bcd64c was 46fd0c7, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 16 months ago |
Add admin page initial work.
|
-
Property mode
set to
100644
|
File size:
964 bytes
|
Rev | Line | |
---|
[cf9cdbf] | 1 | package edu.gjoko.schedlr.entity;
|
---|
| 2 |
|
---|
| 3 | import lombok.AllArgsConstructor;
|
---|
| 4 | import lombok.Getter;
|
---|
| 5 | import lombok.NoArgsConstructor;
|
---|
| 6 | import lombok.Setter;
|
---|
[46fd0c7] | 7 | import org.springframework.data.annotation.LastModifiedDate;
|
---|
| 8 | import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
---|
[cf9cdbf] | 9 |
|
---|
| 10 | import javax.persistence.*;
|
---|
| 11 | import java.time.LocalDateTime;
|
---|
| 12 |
|
---|
| 13 | @Entity
|
---|
[46fd0c7] | 14 | @EntityListeners(AuditingEntityListener.class)
|
---|
[cf9cdbf] | 15 | @Table(name = "appointment")
|
---|
| 16 | @Getter
|
---|
| 17 | @Setter
|
---|
| 18 | @NoArgsConstructor
|
---|
| 19 | @AllArgsConstructor
|
---|
| 20 | public class Appointment {
|
---|
| 21 |
|
---|
| 22 | @Id
|
---|
| 23 | @GeneratedValue(strategy = GenerationType.AUTO)
|
---|
| 24 | private Long id;
|
---|
| 25 |
|
---|
| 26 | @Column(name = "start_type")
|
---|
| 27 | private LocalDateTime startTime;
|
---|
| 28 |
|
---|
| 29 | @Column(name = "end_time")
|
---|
| 30 | private LocalDateTime endTime;
|
---|
| 31 |
|
---|
| 32 | @Column(name = "price")
|
---|
| 33 | private Float price;
|
---|
| 34 |
|
---|
| 35 | @Column(name = "created")
|
---|
[46fd0c7] | 36 | @LastModifiedDate
|
---|
[cf9cdbf] | 37 | private LocalDateTime created;
|
---|
| 38 |
|
---|
| 39 | @Column(name = "modified")
|
---|
[46fd0c7] | 40 | @LastModifiedDate
|
---|
[cf9cdbf] | 41 | private LocalDateTime modified;
|
---|
| 42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.