1 | package mk.finki.ukim.mk.vehiclerent.generated_model;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 | import java.math.BigInteger;
|
---|
5 | import java.sql.Date;
|
---|
6 |
|
---|
7 | @Entity
|
---|
8 | @Table(name = "smetki", schema = "project", catalog = "db_202223z_va_prj_vehiclerent")
|
---|
9 | public class SmetkiEntity {
|
---|
10 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
11 | @Id
|
---|
12 | @Column(name = "brsm")
|
---|
13 | private int brsm;
|
---|
14 | @Basic
|
---|
15 | @Column(name = "iddog")
|
---|
16 | private Integer iddog;
|
---|
17 | @Basic
|
---|
18 | @Column(name = "cenasm")
|
---|
19 | private BigInteger cenasm;
|
---|
20 | @Basic
|
---|
21 | @Column(name = "datumsm")
|
---|
22 | private Date datumsm;
|
---|
23 |
|
---|
24 | public int getBrsm() {
|
---|
25 | return brsm;
|
---|
26 | }
|
---|
27 |
|
---|
28 | public void setBrsm(int brsm) {
|
---|
29 | this.brsm = brsm;
|
---|
30 | }
|
---|
31 |
|
---|
32 | public Integer getIddog() {
|
---|
33 | return iddog;
|
---|
34 | }
|
---|
35 |
|
---|
36 | public void setIddog(Integer iddog) {
|
---|
37 | this.iddog = iddog;
|
---|
38 | }
|
---|
39 |
|
---|
40 | public BigInteger getCenasm() {
|
---|
41 | return cenasm;
|
---|
42 | }
|
---|
43 |
|
---|
44 | public void setCenasm(BigInteger cenasm) {
|
---|
45 | this.cenasm = cenasm;
|
---|
46 | }
|
---|
47 |
|
---|
48 | public Date getDatumsm() {
|
---|
49 | return datumsm;
|
---|
50 | }
|
---|
51 |
|
---|
52 | public void setDatumsm(Date datumsm) {
|
---|
53 | this.datumsm = datumsm;
|
---|
54 | }
|
---|
55 |
|
---|
56 | @Override
|
---|
57 | public boolean equals(Object o) {
|
---|
58 | if (this == o) return true;
|
---|
59 | if (o == null || getClass() != o.getClass()) return false;
|
---|
60 |
|
---|
61 | SmetkiEntity that = (SmetkiEntity) o;
|
---|
62 |
|
---|
63 | if (brsm != that.brsm) return false;
|
---|
64 | if (iddog != null ? !iddog.equals(that.iddog) : that.iddog != null) return false;
|
---|
65 | if (cenasm != null ? !cenasm.equals(that.cenasm) : that.cenasm != null) return false;
|
---|
66 | if (datumsm != null ? !datumsm.equals(that.datumsm) : that.datumsm != null) return false;
|
---|
67 |
|
---|
68 | return true;
|
---|
69 | }
|
---|
70 |
|
---|
71 | @Override
|
---|
72 | public int hashCode() {
|
---|
73 | int result = brsm;
|
---|
74 | result = 31 * result + (iddog != null ? iddog.hashCode() : 0);
|
---|
75 | result = 31 * result + (cenasm != null ? cenasm.hashCode() : 0);
|
---|
76 | result = 31 * result + (datumsm != null ? datumsm.hashCode() : 0);
|
---|
77 | return result;
|
---|
78 | }
|
---|
79 | }
|
---|