#70 add hashCode for deadline
This commit is contained in:
parent
6820c617f3
commit
6350e1c0d6
@ -9,6 +9,7 @@ import javax.persistence.Entity;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
@Entity
|
||||
public class Deadline extends BaseEntity {
|
||||
@ -68,4 +69,9 @@ public class Deadline extends BaseEntity {
|
||||
description.equals(deadline.description) &&
|
||||
date.equals(deadline.date);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(super.hashCode(), description, date);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user