summaryrefslogtreecommitdiffstats
path: root/ms/neng/src
diff options
context:
space:
mode:
Diffstat (limited to 'ms/neng/src')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/persistence/repository/GeneratedNameRespository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/persistence/repository/GeneratedNameRespository.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/persistence/repository/GeneratedNameRespository.java
index ed2ac531..cb98b5dd 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/persistence/repository/GeneratedNameRespository.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/persistence/repository/GeneratedNameRespository.java
@@ -44,7 +44,7 @@ public interface GeneratedNameRespository extends CrudRepository<GeneratedName,
/*
* Finds entities for a given external system ID and element type, ignoring any special characters in names.
*/
- @Query(value = "select * from Generated_Name g where g.external_Id=:externalId and "
+ @Query(value = "select * from GENERATED_NAME g where g.external_Id=:externalId and "
+ "REPLACE(REPLACE(REPLACE(element_type,'NAME',''),'-',''),'_','')=:elementType",
nativeQuery = true)
public GeneratedName findByExternalIdAndRelaxedElementType(@Param("externalId")String externalId,