source: src/main/java/com/example/medweb/model/BolnicaBroeviId.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: 782 bytes
Line 
1package com.example.medweb.model;
2
3import lombok.Data;
4
5import java.io.Serializable;
6import java.util.Objects;
7
8
9@Data
10public class BolnicaBroeviId implements Serializable {
11
12 private Integer bolnica_id;
13 private String telefonski_br_bolnica;
14
15 public BolnicaBroeviId() {
16 }
17
18 @Override
19 public boolean equals(Object o) {
20 if (this == o) return true;
21 if (o == null || getClass() != o.getClass()) return false;
22 BolnicaBroeviId bolnica_broevi_id = (BolnicaBroeviId) o;
23 return bolnica_id.equals(bolnica_broevi_id.bolnica_id) &&
24 telefonski_br_bolnica.equals(bolnica_broevi_id.telefonski_br_bolnica);
25 }
26
27 @Override
28 public int hashCode() {
29 return Objects.hash(bolnica_id, telefonski_br_bolnica);
30 }
31}
Note: See TracBrowser for help on using the repository browser.