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