source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/model/entities/Instancanalinija.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.1 KB
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 Instancanalinija {
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 @Id
16 @Column(name = "inl_id")
17 private Long inlId;
18 @Basic
19 @Column(name = "inl_datum_start")
20 private Timestamp inlDatumStart;
21 @Basic
22 @Column(name = "inl_datum_end")
23 private Timestamp inlDatumEnd;
24 @ManyToOne
25 @JoinColumn(name = "vozac_k_id", referencedColumnName = "k_id", nullable = false)
26 private Vozac korisnikByVozacKId;
27 @ManyToOne
28 @JoinColumn(name = "a_registracija", referencedColumnName = "a_registracija")
29 private Avtobus avtobusByARegistracija;
30 @ManyToOne
31 @JoinColumn(name = "li_id", referencedColumnName = "li_id", nullable = false)
32 private Linija linijaByLiId;
33 @OneToMany(mappedBy = "instancanalinijaByInlId")
34 private List<Kontroli> kontrolisByInlId;
35 @OneToMany(mappedBy = "instancanalinijaByInlId")
36 private List<Vozenje> vozenjesByInlId;
37}
Note: See TracBrowser for help on using the repository browser.