source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/model/entities/Kazna.java

Last change on this file was baf4cc4, checked in by ppaunovski <paunovskipavel@…>, 3 months ago

split group project and individual project into two separate folders

  • Property mode set to 100644
File size: 1.2 KB
Line 
1package mk.ukim.finki.busngo.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5
6import java.sql.Timestamp;
7import java.util.Objects;
8
9@Data
10@Entity
11@Inheritance(strategy = InheritanceType.JOINED)
12public class Kazna {
13 @GeneratedValue(strategy = GenerationType.IDENTITY)
14 @Id
15 @Column(name = "kz_id")
16 private Long kzId;
17
18 @Basic
19 @Column(name = "kz_iznos")
20 private Double kzIznos;
21
22 @Basic
23 @Column(name = "kz_plateno")
24 private Boolean kzPlateno;
25
26 @Basic
27 @Column(name = "kz_datum")
28 private Timestamp kzDatum;
29
30 @Basic
31 @Column(name = "kz_datum_plateno")
32 private Timestamp kzDatumPlateno;
33
34 @Basic
35 @Column(name = "kz_dokument")
36 private String kzDokument;
37
38 @ManyToOne
39 @JoinColumn(name = "kondukter_k_id", referencedColumnName = "k_id")
40 private Kondukter korisnikByKondukterKId;
41
42 @ManyToOne
43 @JoinColumn(name = "kontrola_id", referencedColumnName = "kontrola_id")
44 private Kontroli kontroliByKontrolaId;
45
46// @OneToOne(mappedBy = "kaznaByKzId")
47// private Kaznazaneregistriran kaznazaneregistriranByKzId;
48//
49// @OneToOne(mappedBy = "kaznaByKzId")
50// private Kaznazaregistriran kaznazaregistriranByKzId;
51}
Note: See TracBrowser for help on using the repository browser.