-
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 #364 from bcgov/feature/GRAD2-3164
GRAD2-3164: task is complete.
- Loading branch information
Showing
21 changed files
with
393 additions
and
212 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
34 changes: 34 additions & 0 deletions
34
api/src/main/java/ca/bc/gov/educ/api/dataconversion/model/institute/School.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,34 @@ | ||
package ca.bc.gov.educ.api.dataconversion.model.institute; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Data | ||
@EqualsAndHashCode | ||
@Component("instituteSchool") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class School { | ||
|
||
private String schoolId; | ||
private String districtId; | ||
private String mincode; | ||
private String independentAuthorityId; | ||
private String schoolNumber; | ||
private String faxNumber; | ||
private String phoneNumber; | ||
private String email; | ||
private String website; | ||
private String displayName; | ||
private String displayNameNoSpecialChars; | ||
private String schoolReportingRequirementCode; | ||
private String schoolOrganizationCode; | ||
private String schoolCategoryCode; | ||
private String facilityTypeCode; | ||
private String openedDate; | ||
private String closedDate; | ||
private boolean canIssueTranscripts; | ||
private boolean canIssueCertificates; | ||
|
||
} |
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
156 changes: 0 additions & 156 deletions
156
api/src/main/java/ca/bc/gov/educ/api/dataconversion/model/tsw/School.java
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
api/src/main/java/ca/bc/gov/educ/api/dataconversion/model/tsw/SchoolClob.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,49 @@ | ||
package ca.bc.gov.educ.api.dataconversion.model.tsw; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.Data; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Data | ||
@Component | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class SchoolClob implements Comparable<SchoolClob> { | ||
|
||
private String minCode; | ||
private String schoolId; | ||
private String schoolName; | ||
private String districtName; | ||
private String transcriptEligibility; | ||
private String certificateEligibility; | ||
private String address1; | ||
private String address2; | ||
private String city; | ||
private String provCode; | ||
private String countryCode; | ||
private String postal; | ||
private String openFlag; | ||
private String schoolCategoryCode; | ||
private String schoolCategoryLegacyCode; | ||
|
||
@Override | ||
public String toString() { | ||
return "SchoolClob [minCode=" + minCode + ", schoolId=" + schoolId + ", schoolCategoryCode=" + schoolCategoryCode + ", schoolCategoryLegacyCode=" + schoolCategoryLegacyCode | ||
+ ", schoolName=" + schoolName + ", districtName=" + districtName + ", transcriptEligibility=" + transcriptEligibility + ", certificateEligibility=" + certificateEligibility | ||
+ ", address1=" + address1 + ", address2=" + address2 + ", city=" + city + ", provCode=" + provCode + ", countryCode=" + countryCode + ", postal=" + postal + ", openFlag=" + openFlag | ||
+ "]"; | ||
} | ||
|
||
@Override | ||
public int compareTo(SchoolClob o) { | ||
int result = 0; | ||
{ | ||
if (result == 0) { | ||
result = getMinCode().compareToIgnoreCase(o.getMinCode()); | ||
} | ||
if (result == 0) { | ||
result = getSchoolName().compareToIgnoreCase(o.getSchoolName()); | ||
} | ||
} | ||
return result; | ||
} | ||
} |
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
Oops, something went wrong.