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.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "pravnil", schema = "project", catalog = "db_202223z_va_prj_vehiclerent")
|
---|
7 | public class PravnilEntity {
|
---|
8 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
9 | @Id
|
---|
10 | @Column(name = "embgkpl")
|
---|
11 | private String embgkpl;
|
---|
12 | @Basic
|
---|
13 | @Column(name = "direktor")
|
---|
14 | private String direktor;
|
---|
15 |
|
---|
16 | public String getEmbgkpl() {
|
---|
17 | return embgkpl;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public void setEmbgkpl(String embgkpl) {
|
---|
21 | this.embgkpl = embgkpl;
|
---|
22 | }
|
---|
23 |
|
---|
24 | public String getDirektor() {
|
---|
25 | return direktor;
|
---|
26 | }
|
---|
27 |
|
---|
28 | public void setDirektor(String direktor) {
|
---|
29 | this.direktor = direktor;
|
---|
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 | PravnilEntity that = (PravnilEntity) o;
|
---|
38 |
|
---|
39 | if (embgkpl != null ? !embgkpl.equals(that.embgkpl) : that.embgkpl != null) return false;
|
---|
40 | if (direktor != null ? !direktor.equals(that.direktor) : that.direktor != null) return false;
|
---|
41 |
|
---|
42 | return true;
|
---|
43 | }
|
---|
44 |
|
---|
45 | @Override
|
---|
46 | public int hashCode() {
|
---|
47 | int result = embgkpl != null ? embgkpl.hashCode() : 0;
|
---|
48 | result = 31 * result + (direktor != null ? direktor.hashCode() : 0);
|
---|
49 | return result;
|
---|
50 | }
|
---|
51 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.