source: bus-n-go-do-5ta-faza/src/main/java/mk/ukim/finki/busngo/model/entities/Linija.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: 709 bytes
Line 
1package mk.ukim.finki.busngo.model.entities;
2
3import jakarta.persistence.*;
4import lombok.Data;
5
6import java.lang.invoke.CallSite;
7import java.util.Collection;
8import java.util.List;
9import java.util.Objects;
10
11@Data
12@Entity
13public class Linija {
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 @Id
16 @Column(name = "li_id")
17 private Integer liId;
18 @Basic
19 @Column(name = "li_ime")
20 private String liIme;
21 @Basic
22 @Column(name = "li_pravec")
23 private String liPravec;
24 @OneToMany(mappedBy = "linijaByLiId")
25 private List<Instancanalinija> instancanalinijasByLiId;
26 @OneToMany(mappedBy = "linijaByLiId")
27 private List<Postojkanalinija> postojkanalinijasByLiId;
28
29}
Note: See TracBrowser for help on using the repository browser.