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 | |
---|
1 | package mk.ukim.finki.busngo.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | import java.sql.Timestamp;
|
---|
7 | import java.util.Collection;
|
---|
8 | import java.util.List;
|
---|
9 | import java.util.Objects;
|
---|
10 |
|
---|
11 | @Data
|
---|
12 | @Entity
|
---|
13 | public 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.