Last change
on this file was 62bba0c, checked in by ste08 <sjovanoska@…>, 3 months ago |
Report working, Wishlist partly working.
|
-
Property mode
set to
100644
|
File size:
957 bytes
|
Rev | Line | |
---|
[62bba0c] | 1 | package com.example.skychasemk.model;
|
---|
| 2 |
|
---|
| 3 | import java.io.Serializable;
|
---|
| 4 | import java.time.LocalDate;
|
---|
| 5 | import java.util.Objects;
|
---|
| 6 |
|
---|
| 7 | public class TopMonthlyReportId implements Serializable {
|
---|
| 8 | private LocalDate month;
|
---|
| 9 | private String category;
|
---|
| 10 | private String name;
|
---|
| 11 |
|
---|
| 12 | public TopMonthlyReportId() {}
|
---|
| 13 |
|
---|
| 14 | public TopMonthlyReportId(LocalDate month, String category, String name) {
|
---|
| 15 | this.month = month;
|
---|
| 16 | this.category = category;
|
---|
| 17 | this.name = name;
|
---|
| 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 | TopMonthlyReportId that = (TopMonthlyReportId) o;
|
---|
| 25 | return Objects.equals(month, that.month) &&
|
---|
| 26 | Objects.equals(category, that.category) &&
|
---|
| 27 | Objects.equals(name, that.name);
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | @Override
|
---|
| 31 | public int hashCode() {
|
---|
| 32 | return Objects.hash(month, category, name);
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.