source: src/main/java/com/example/medweb/model/OddelId.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: 671 bytes
Line 
1package com.example.medweb.model;
2
3
4import lombok.Data;
5
6import java.io.Serializable;
7import java.util.Objects;
8
9
10@Data
11public class OddelId implements Serializable {
12
13
14 private Integer bolnica_id;
15 private Integer oddel_id;
16
17 public OddelId() {
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 OddelId oddelId = (OddelId) o;
25 return bolnica_id.equals(oddelId.bolnica_id) &&
26 oddel_id.equals(oddelId.oddel_id);
27 }
28
29 @Override
30 public int hashCode() {
31 return Objects.hash(bolnica_id, oddel_id);
32 }
33}
Note: See TracBrowser for help on using the repository browser.