Skip to content

Commit

Permalink
Mosip 19954 Issue when we create a location with the same name with d…
Browse files Browse the repository at this point in the history
…ifferent parents in the same hierarchy level
  • Loading branch information
Shilpa M committed Mar 9, 2022
1 parent 6673540 commit 7465eb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ List<Location> findLocationByHierarchyLevelStartsWith(Short hierarchyLevel, Stri
@Query("FROM Location l WHERE l.name=?1 AND l.hierarchyLevel=?2 ")
List<Location> findByNameAndLevel(String name, Short hierarchyLevel);

@Query("FROM Location l WHERE l.name=?1 AND l.hierarchyLevel=?2 AND l.langCode=?3")
@Query("FROM Location l WHERE l.name=?1 AND l.hierarchyLevel=?2 AND l.langCode=?3 and (l.isDeleted is null or l.isDeleted=false)")
List<Location> findByNameAndLevelLangCode(String name, Short hierarchyLevel, String langCode);

@Query("FROM Location l WHERE l.name=?1 AND l.hierarchyLevel=?2 AND l.langCode=?3 AND NOT code=?4")
Expand Down

0 comments on commit 7465eb4

Please sign in to comment.