Skip to content

Commit

Permalink
Merge pull request #161 from ministryofjustice/bug/CCMSPUI-666
Browse files Browse the repository at this point in the history
CCMSPUI-666 | Add ACTIVE_FLAG column
  • Loading branch information
arunkumar461 authored Mar 10, 2025
2 parents 4777a90 + 6844234 commit fe4396f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ public class MatterType {
*/
@Column(name = "CATEGORY_OF_LAW_CODE")
private String categoryOfLawCode;

/**
* The category of law code.
*/
@Column(name = "ACTIVE_FLAG")
private String activeFlag;


}
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ public MatterTypeLookupDetail getMatterTypeLookupValues(
example.setMatterType(matterType);
example.setDescription(description);
example.setCategoryOfLawCode(categoryOfLaw);
example.setActiveFlag("Y");

return lookupMapper.toMatterTypeLookupDetail(
matterTypeRepository.findAll(Example.of(example), pageable));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ void getMatterTypeLookupValues_returnsPageOfMatterTypeValues() {
matterTypeEntity.setDescription(description);
matterTypeEntity.setMatterType(matterType);
matterTypeEntity.setCategoryOfLawCode(categoryOfLaw);
matterTypeEntity.setActiveFlag("Y");

Page<MatterType> expectedPage = new PageImpl<>(
Collections.singletonList(matterTypeEntity));
Expand Down

0 comments on commit fe4396f

Please sign in to comment.