-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from bcgov/develop/alex
Fix missing certificates
- Loading branch information
Showing
6 changed files
with
103 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
api/src/main/java/ca/bc/gov/educ/api/grad/report/model/entity/SchoolReportEntityId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package ca.bc.gov.educ.api.grad.report.model.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
import java.util.UUID; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class SchoolReportEntityId implements Serializable { | ||
|
||
@Column(name = "GRADUATION_STUDENT_RECORD_ID", nullable = false) | ||
protected UUID graduationStudentRecordId; | ||
@Column(name = "PAPER_TYPE") | ||
protected String paperType; | ||
@Column(name = "CERTIFICATE_TYPE_CODE") | ||
protected String certificateTypeCode; | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
SchoolReportEntityId that = (SchoolReportEntityId) o; | ||
return Objects.equals(graduationStudentRecordId, that.graduationStudentRecordId) && Objects.equals(paperType, that.paperType) && Objects.equals(certificateTypeCode, that.certificateTypeCode); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(graduationStudentRecordId, paperType, certificateTypeCode); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "SchoolReportEntityId {" + | ||
"graduationStudentRecordId=" + graduationStudentRecordId + | ||
", paperType='" + paperType + '\'' + | ||
", certificateTypeCode='" + certificateTypeCode + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters