-
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 #243 from bcgov/feature/fundingGroups
Updates to return school funding groups.
- Loading branch information
Showing
6 changed files
with
139 additions
and
68 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
21 changes: 21 additions & 0 deletions
21
api/src/main/java/ca/bc/gov/educ/api/institute/service/v1/SchoolFundingGroupService.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,21 @@ | ||
package ca.bc.gov.educ.api.institute.service.v1; | ||
|
||
import ca.bc.gov.educ.api.institute.model.v1.IndependentSchoolFundingGroupEntity; | ||
import ca.bc.gov.educ.api.institute.repository.v1.IndependentSchoolFundingGroupRepository; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
|
||
@Service | ||
public class SchoolFundingGroupService { | ||
|
||
private final IndependentSchoolFundingGroupRepository independentSchoolFundingGroupRepository; | ||
|
||
public SchoolFundingGroupService(IndependentSchoolFundingGroupRepository independentSchoolFundingGroupRepository) { | ||
this.independentSchoolFundingGroupRepository = independentSchoolFundingGroupRepository; | ||
} | ||
|
||
public List<IndependentSchoolFundingGroupEntity> getAllSchoolFundingGroups() { | ||
return independentSchoolFundingGroupRepository.findAll(); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
api/src/main/java/ca/bc/gov/educ/api/institute/struct/v1/SchoolFundingGroup.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,32 @@ | ||
package ca.bc.gov.educ.api.institute.struct.v1; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
@SuppressWarnings("squid:S1700") | ||
public class SchoolFundingGroup implements Serializable { | ||
|
||
private static final long serialVersionUID = 6118916290604876032L; | ||
|
||
private String schoolId; | ||
|
||
private String schoolFundingGroupCode; | ||
|
||
private String label; | ||
|
||
private String description; | ||
|
||
private Integer displayOrder; | ||
|
||
private String effectiveDate; | ||
|
||
private String expiryDate; | ||
} |
Oops, something went wrong.