airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1389434 - /airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
Date Mon, 24 Sep 2012 15:33:39 GMT
Author: lahiru
Date: Mon Sep 24 15:33:39 2012
New Revision: 1389434

URL: http://svn.apache.org/viewvc?rev=1389434&view=rev
Log:
fixing issue in experiment data

Modified:
    airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java

Modified: airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java?rev=1389434&r1=1389433&r2=1389434&view=diff
==============================================================================
--- airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
(original)
+++ airavata/trunk/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/ExperimentDataResource.java
Mon Sep 24 15:33:39 2012
@@ -128,7 +128,9 @@ public class ExperimentDataResource exte
         switch (type){
             case WORKFLOW_DATA:
                 generator = new QueryGenerator(WORKFLOW_DATA);
-                generator.setParameter(WorkflowDataConstants.EXPERIMENT_ID, experimentID);
+//                generator.setParameter(WorkflowDataConstants.EXPERIMENT_ID, experimentID);
+                Experiment_Data experiment_data = em.find(Experiment_Data.class, experimentID);
+                generator.setParameter("experiment_data", experiment_data);
                 q = generator.selectQuery(em);
                 results = q.getResultList();
                 if (results.size() != 0) {



Mime
View raw message