aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/swagger/api/impl/DcaeServiceTypesApiServiceImpl.java10
1 files changed, 8 insertions, 2 deletions
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) {