source: src/main/java/com/example/medweb/model/TerminId.java@ e96d444

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

initial commit

  • Property mode set to 100644
File size: 744 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 TerminId implements Serializable {
12
13 private Integer doktor_id;
14 private Integer termin_id;
15
16 public TerminId() {
17 }
18
19 public TerminId(Integer doktor_id, Integer termin_id) {
20 }
21
22 @Override
23 public boolean equals(Object o) {
24 if (this == o) return true;
25 if (o == null || getClass() != o.getClass()) return false;
26 TerminId terminId = (TerminId) o;
27 return doktor_id.equals(terminId.doktor_id) &&
28 termin_id.equals(terminId.termin_id);
29 }
30
31 @Override
32 public int hashCode() {
33 return Objects.hash(doktor_id, termin_id);
34 }
35}
Note: See TracBrowser for help on using the repository browser.