source: src/main/java/mk/finki/ukim/mk/vehiclerent/generated_model/VozilaEntity.java@ 3965aed

Last change on this file since 3965aed was 3965aed, checked in by lepaSi <86915414+lepaSi@…>, 9 months ago

Init

  • Property mode set to 100644
File size: 3.3 KB
Line 
1package mk.finki.ukim.mk.vehiclerent.generated_model;
2
3import javax.persistence.*;
4import java.math.BigInteger;
5
6@Entity
7@Table(name = "vozila", schema = "project", catalog = "db_202223z_va_prj_vehiclerent")
8public class VozilaEntity {
9 @GeneratedValue(strategy = GenerationType.IDENTITY)
10 @Id
11 @Column(name = "idvozi")
12 private int idvozi;
13 @Basic
14 @Column(name = "idkat")
15 private Integer idkat;
16 @Basic
17 @Column(name = "model")
18 private String model;
19 @Basic
20 @Column(name = "marka")
21 private String marka;
22 @Basic
23 @Column(name = "regtab")
24 private String regtab;
25 @Basic
26 @Column(name = "cenavozi")
27 private BigInteger cenavozi;
28
29 public VozilaEntity(){}
30
31 public VozilaEntity(Integer idkat, String model, String marka, String regtab, BigInteger cenavozi) {
32 this.idkat = idkat;
33 this.model = model;
34 this.marka = marka;
35 this.regtab = regtab;
36 this.cenavozi = cenavozi;
37 }
38
39 public VozilaEntity(int idvozi, Integer idkat, String model, String marka, String regtab, BigInteger cenavozi) {
40 this.idvozi = idvozi;
41 this.idkat = idkat;
42 this.model = model;
43 this.marka = marka;
44 this.regtab = regtab;
45 this.cenavozi = cenavozi;
46 }
47
48 public int getIdvozi() {
49 return idvozi;
50 }
51
52 public void setIdvozi(int idvozi) {
53 this.idvozi = idvozi;
54 }
55
56 public Integer getIdkat() {
57 return idkat;
58 }
59
60 public void setIdkat(Integer idkat) {
61 this.idkat = idkat;
62 }
63
64 public String getModel() {
65 return model;
66 }
67
68 public void setModel(String model) {
69 this.model = model;
70 }
71
72 public String getMarka() {
73 return marka;
74 }
75
76 public void setMarka(String marka) {
77 this.marka = marka;
78 }
79
80 public String getRegtab() {
81 return regtab;
82 }
83
84 public void setRegtab(String regtab) {
85 this.regtab = regtab;
86 }
87
88 public BigInteger getCenavozi() {
89 return cenavozi;
90 }
91
92 public void setCenavozi(BigInteger cenavozi) {
93 this.cenavozi = cenavozi;
94 }
95
96 @Override
97 public boolean equals(Object o) {
98 if (this == o) return true;
99 if (o == null || getClass() != o.getClass()) return false;
100
101 VozilaEntity that = (VozilaEntity) o;
102
103 if (idvozi != that.idvozi) return false;
104 if (idkat != null ? !idkat.equals(that.idkat) : that.idkat != null) return false;
105 if (model != null ? !model.equals(that.model) : that.model != null) return false;
106 if (marka != null ? !marka.equals(that.marka) : that.marka != null) return false;
107 if (regtab != null ? !regtab.equals(that.regtab) : that.regtab != null) return false;
108 if (cenavozi != null ? !cenavozi.equals(that.cenavozi) : that.cenavozi != null) return false;
109
110 return true;
111 }
112
113 @Override
114 public int hashCode() {
115 int result = idvozi;
116 result = 31 * result + (idkat != null ? idkat.hashCode() : 0);
117 result = 31 * result + (model != null ? model.hashCode() : 0);
118 result = 31 * result + (marka != null ? marka.hashCode() : 0);
119 result = 31 * result + (regtab != null ? regtab.hashCode() : 0);
120 result = 31 * result + (cenavozi != null ? cenavozi.hashCode() : 0);
121 return result;
122 }
123}
Note: See TracBrowser for help on using the repository browser.