source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/model/entities/Postojkanalinija.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: 784 bytes
Line 
1package mk.ukim.finki.busngo.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5
6import java.util.Collection;
7import java.util.List;
8import java.util.Objects;
9
10@Data
11@Entity
12public class Postojkanalinija {
13 @GeneratedValue(strategy = GenerationType.IDENTITY)
14 @Id
15 @Column(name = "pnl_id")
16 private Long pnlId;
17 @Basic
18 @Column(name = "pnl_reden_broj")
19 private Short pnlRedenBroj;
20 @ManyToOne
21 @JoinColumn(name = "li_id", referencedColumnName = "li_id", nullable = false)
22 private Linija linijaByLiId;
23 @ManyToOne
24 @JoinColumn(name = "p_id", referencedColumnName = "p_id", nullable = false)
25 private Postojka postojkaByPId;
26 @OneToMany(mappedBy = "postojkanalinijaByKacuvaPnlId")
27 private List<Vozenje> vozenjesByPnlId;
28}
Note: See TracBrowser for help on using the repository browser.