Skip to content

Commit

Permalink
CCMSPUI-666 | Add ACTIVE_FLAG column
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkumar461 committed Mar 10, 2025
1 parent 4777a90 commit 6844234
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 6844234

Please sign in to comment.