Table names are case-sensitive in the version of Maria used in ONAP.
Change-Id: I0a38a35a48fd2a2c850af67b46f882f2e7c96047
Issue-ID: CCSDK-608
Signed-off-by: BT2983 <BT2983@att.com>
/*
* 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,