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:
1.0 KB
|
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 = "magacin", catalog = "db_202223z_va_prj_fmo")
|
---|
9 | public class Magacin {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | @Column(name = "id_magacin")
|
---|
13 | private int idMagacin;
|
---|
14 | @Basic
|
---|
15 | @Column(name = "lokacija")
|
---|
16 | private String lokacija;
|
---|
17 |
|
---|
18 | public int getIdMagacin() {
|
---|
19 | return idMagacin;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public void setIdMagacin(int idMagacin) {
|
---|
23 | this.idMagacin = idMagacin;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public String getLokacija() {
|
---|
27 | return lokacija;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void setLokacija(String lokacija) {
|
---|
31 | this.lokacija = lokacija;
|
---|
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 | Magacin magacin = (Magacin) o;
|
---|
39 | return idMagacin == magacin.idMagacin && Objects.equals(lokacija, magacin.lokacija);
|
---|
40 | }
|
---|
41 |
|
---|
42 | @Override
|
---|
43 | public int hashCode() {
|
---|
44 | return Objects.hash(idMagacin, lokacija);
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.