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:
651 bytes
|
Line | |
---|
1 | package mk.ukim.finki.busngo.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | import java.util.Collection;
|
---|
7 | import java.util.List;
|
---|
8 | import java.util.Objects;
|
---|
9 |
|
---|
10 | @Data
|
---|
11 | @Entity
|
---|
12 | public class Tipbilet {
|
---|
13 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
14 | @Id
|
---|
15 | @Column(name = "tb_id", columnDefinition = "serial")
|
---|
16 | private Long tbId;
|
---|
17 | @Basic
|
---|
18 | @Column(name = "tb_trajnost")
|
---|
19 | private Long tbTrajnost;
|
---|
20 | @Basic
|
---|
21 | @Column(name = "tb_cena")
|
---|
22 | private Float tbCena;
|
---|
23 | @Basic
|
---|
24 | @Column(name = "tb_ime")
|
---|
25 | private String tbIme;
|
---|
26 | @OneToMany(mappedBy = "tipbiletByTbId")
|
---|
27 | private List<Bilet> biletsByTbId;
|
---|
28 |
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.