source: src/main/java/com/example/medweb/model/TelefonskiBroeviId.java

Last change on this file was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 787 bytes
Line 
1package com.example.medweb.model;
2
3import lombok.Data;
4
5import java.io.Serializable;
6import java.util.Objects;
7
8
9
10@Data
11public class TelefonskiBroeviId implements Serializable {
12
13
14 private Integer covek_broj_id;
15 private String telefonski_broj;
16
17 public TelefonskiBroeviId() {
18 }
19
20 @Override
21 public boolean equals(Object o) {
22 if (this == o) return true;
23 if (o == null || getClass() != o.getClass()) return false;
24 TelefonskiBroeviId telefonskiBroeviId = (TelefonskiBroeviId) o;
25 return covek_broj_id.equals(telefonskiBroeviId.covek_broj_id) &&
26 telefonski_broj.equals(telefonskiBroeviId.telefonski_broj);
27 }
28
29 @Override
30 public int hashCode() {
31 return Objects.hash(covek_broj_id, telefonski_broj);
32 }
33}
Note: See TracBrowser for help on using the repository browser.