diff options
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -29,7 +29,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <groupId>org.onap.dcaegen2.platform</groupId> <artifactId>inventory-api</artifactId> - <version>3.0.2</version> + <version>3.0.3</version> <name>dcaegen2-platform-inventory-api</name> <!--internal <version>3.0.0</version>--> diff --git a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java index 0cb108c..feafd20 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java @@ -94,9 +94,15 @@ public class DcaeServiceTypesApiServiceImpl extends DcaeServiceTypesApiService { } List<String> whereClauses = new ArrayList<>(); - + if (typeName != null) { - whereClauses.add(":typeName = type_name"); + if (!typeName.contains("*")) { + whereClauses.add(":typeName = type_name"); + } + else { + typeName = typeName.replaceAll("\\*", "%"); + whereClauses.add("type_name LIKE :typeName"); + } } if (vnfType != null) { |