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