source: src/main/java/mk/finki/ukim/mk/vehiclerent/generated_model/KategoriiEntity.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: 1.2 KB
Line 
1package mk.finki.ukim.mk.vehiclerent.generated_model;
2
3import javax.persistence.*;
4
5@Entity
6@Table(name = "kategorii", schema = "project", catalog = "db_202223z_va_prj_vehiclerent")
7public class KategoriiEntity {
8 @GeneratedValue(strategy = GenerationType.IDENTITY)
9 @Id
10 @Column(name = "idkat")
11 private int idkat;
12 @Basic
13 @Column(name = "tip")
14 private String tip;
15
16 public int getIdkat() {
17 return idkat;
18 }
19
20 public void setIdkat(int idkat) {
21 this.idkat = idkat;
22 }
23
24 public String getTip() {
25 return tip;
26 }
27
28 public void setTip(String tip) {
29 this.tip = tip;
30 }
31
32 @Override
33 public boolean equals(Object o) {
34 if (this == o) return true;
35 if (o == null || getClass() != o.getClass()) return false;
36
37 KategoriiEntity that = (KategoriiEntity) o;
38
39 if (idkat != that.idkat) return false;
40 if (tip != null ? !tip.equals(that.tip) : that.tip != null) return false;
41
42 return true;
43 }
44
45 @Override
46 public int hashCode() {
47 int result = idkat;
48 result = 31 * result + (tip != null ? tip.hashCode() : 0);
49 return result;
50 }
51}
Note: See TracBrowser for help on using the repository browser.