|
Last change
on this file since 1eb7a55 was 1eb7a55, checked in by Elena Markovska <elena.elenamarkovska@…>, 11 days ago |
|
Initial commit - Scholaris project code
|
-
Property mode
set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | package model;
|
|---|
| 2 |
|
|---|
| 3 | import java.util.Objects;
|
|---|
| 4 |
|
|---|
| 5 | public class ProfessorSubject {
|
|---|
| 6 | private Long subject_id;
|
|---|
| 7 | private Long professor_id;
|
|---|
| 8 |
|
|---|
| 9 | public ProfessorSubject() {
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | public ProfessorSubject(Long subject_id, Long professor_id) {
|
|---|
| 13 | this.subject_id = subject_id;
|
|---|
| 14 | this.professor_id = professor_id;
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | public Long getSubject_id() {
|
|---|
| 18 | return subject_id;
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | public void setSubject_id(Long subject_id) {
|
|---|
| 22 | this.subject_id = subject_id;
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | public Long getProfessor_id() {
|
|---|
| 26 | return professor_id;
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | public void setProfessor_id(Long professor_id) {
|
|---|
| 30 | this.professor_id = professor_id;
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | @Override
|
|---|
| 34 | public boolean equals(Object o) {
|
|---|
| 35 | if (o == null || getClass() != o.getClass()) return false;
|
|---|
| 36 | ProfessorSubject that = (ProfessorSubject) o;
|
|---|
| 37 | return Objects.equals(subject_id, that.subject_id) && Objects.equals(professor_id, that.professor_id);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | @Override
|
|---|
| 41 | public int hashCode() {
|
|---|
| 42 | return Objects.hash(subject_id, professor_id);
|
|---|
| 43 | }
|
|---|
| 44 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.