source: src/main/java/com/example/medweb/model/Pregled.java

Last change on this file was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 776 bytes
Line 
1package com.example.medweb.model;
2
3
4import lombok.Data;
5
6import javax.persistence.*;
7import java.time.ZonedDateTime;
8
9
10@Data
11@Entity
12public class Pregled {
13
14 @Id
15 @GeneratedValue (strategy = GenerationType.IDENTITY)
16 private Integer pregled_id;
17 private ZonedDateTime vreme ;
18
19 @ManyToOne
20 @JoinColumn(name = "doktor_id", referencedColumnName = "doktor_id", nullable = true)
21 Doktor doktor;
22
23 @ManyToOne
24 @JoinColumn(name = "covek_pacient_id", referencedColumnName = "covek_pacient_id", nullable = false)
25 private Pacient pacient;
26
27
28 public Pregled() {
29 }
30
31 public Pregled(ZonedDateTime vreme) {
32 this.vreme = vreme;
33 }
34
35 public Pregled(Pregled pregled) {
36 }
37
38 public Pregled(Doktor doktor, Long pregled_id) {
39 }
40}
Note: See TracBrowser for help on using the repository browser.