-
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 #475 from bcgov/feature/reportGen
Working enrollment report.
- Loading branch information
Showing
21 changed files
with
601 additions
and
133 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
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
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
60 changes: 60 additions & 0 deletions
60
api/src/main/java/ca/bc/gov/educ/studentdatacollection/api/struct/v1/District.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,60 @@ | ||
package ca.bc.gov.educ.studentdatacollection.api.struct.v1; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import jakarta.validation.constraints.Size; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* The type Student. | ||
*/ | ||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
@SuperBuilder | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class District extends BaseRequest implements Serializable { | ||
/** | ||
* The constant serialVersionUID. | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
private String districtId; | ||
|
||
@Size(max = 3) | ||
@NotNull(message = "districtNumber can not be null.") | ||
private String districtNumber; | ||
|
||
@Size(max = 10) | ||
@Pattern(regexp = "^$|\\d{10}", message = "Invalid phone number format") | ||
private String faxNumber; | ||
|
||
@Size(max = 10) | ||
@Pattern(regexp = "^$|\\d{10}", message = "Invalid phone number format") | ||
private String phoneNumber; | ||
|
||
@Size(max = 255) | ||
@Email(message = "Email address should be a valid email address") | ||
private String email; | ||
|
||
@Size(max = 255) | ||
private String website; | ||
|
||
@Size(max = 255) | ||
@NotNull(message = "displayName cannot be null") | ||
private String displayName; | ||
|
||
@Size(max = 10) | ||
@NotNull(message = "districtRegionCode cannot be null") | ||
private String districtRegionCode; | ||
|
||
@Size(max = 10) | ||
@NotNull(message = "districtStatusCode cannot be null") | ||
private String districtStatusCode; | ||
|
||
} |
Oops, something went wrong.