airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject git commit: allow search projects for partial strings - AIRAVATA-1333
Date Thu, 10 Jul 2014 14:21:04 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 210ebad3b -> afdba81cc


allow search projects for partial strings - AIRAVATA-1333


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/afdba81c
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/afdba81c
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/afdba81c

Branch: refs/heads/master
Commit: afdba81cc5902b3e72dd95021e38d8b4c1734da9
Parents: 210ebad
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Thu Jul 10 10:20:58 2014 -0400
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Thu Jul 10 10:20:58 2014 -0400

----------------------------------------------------------------------
 .../persistance/registry/jpa/resources/WorkerResource.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/afdba81c/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
index 5df418f..34ffe1f 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/WorkerResource.java
@@ -540,7 +540,7 @@ public class WorkerResource extends AbstractResource {
             String query = "SELECT p from Project p WHERE ";
             if (filters != null && filters.size() != 0) {
                 for (String field : filters.keySet()) {
-                    query += "p." + field + " LIKE '" + filters.get(field) + "%' AND ";
+                    query += "p." + field + " LIKE '%" + filters.get(field) + "%' AND ";
                 }
             }
             query = query.substring(0, query.length() - 5);


Mime
View raw message