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:
744 bytes
|
Rev | Line | |
---|
[e5fefbd] | 1 | package com.example.medweb.model;
|
---|
| 2 |
|
---|
| 3 |
|
---|
| 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | import java.io.Serializable;
|
---|
| 7 | import java.util.Objects;
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | @Data
|
---|
| 11 | public 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.