source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/model/entities/Kontroli.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: 818 bytes
Line 
1package mk.ukim.finki.busngo.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5
6import java.sql.Timestamp;
7import java.util.Collection;
8import java.util.List;
9import java.util.Objects;
10
11@Data
12@Entity
13public class Kontroli {
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 @Id
16 @Column(name = "kontrola_id")
17 private Long kontrolaId;
18 @Basic
19 @Column(name = "kontrola_datum")
20 private Timestamp kontrolaDatum;
21 @OneToMany(mappedBy = "kontroliByKontrolaId")
22 private List<Kazna> kaznasByKontrolaId;
23 @ManyToOne
24 @JoinColumn(name = "kondukter_k_id", referencedColumnName = "k_id")
25 private Kondukter korisnikByKondukterKId;
26 @ManyToOne
27 @JoinColumn(name = "inl_id", referencedColumnName = "inl_id")
28 private Instancanalinija instancanalinijaByInlId;
29
30}
Note: See TracBrowser for help on using the repository browser.