main
Last change
on this file was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 19 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
817 bytes
|
Line | |
---|
1 | package project.fmo.app.projcetfmo.Model;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 |
|
---|
5 | import java.util.Objects;
|
---|
6 |
|
---|
7 | @Entity
|
---|
8 | @Table(schema = "project", name = "dostavuvac", catalog = "db_202223z_va_prj_fmo")
|
---|
9 | public class Dostavuvac {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | @Column(name = "id_korisnik")
|
---|
13 | private int idKorisnik;
|
---|
14 |
|
---|
15 | public Dostavuvac(){}
|
---|
16 |
|
---|
17 | public int getIdKorisnik() {
|
---|
18 | return idKorisnik;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void setIdKorisnik(int idKorisnik) {
|
---|
22 | this.idKorisnik = idKorisnik;
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public boolean equals(Object o) {
|
---|
27 | if (this == o) return true;
|
---|
28 | if (o == null || getClass() != o.getClass()) return false;
|
---|
29 | Dostavuvac that = (Dostavuvac) o;
|
---|
30 | return idKorisnik == that.idKorisnik;
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override
|
---|
34 | public int hashCode() {
|
---|
35 | return Objects.hash(idKorisnik);
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.