airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1377968 - /incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java
Date Tue, 28 Aug 2012 03:49:18 GMT
Author: lahiru
Date: Tue Aug 28 03:49:18 2012
New Revision: 1377968

URL: http://svn.apache.org/viewvc?rev=1377968&view=rev
Log:
Applying patch provided by Ye Fan for issue https://issues.apache.org/jira/browse/AIRAVATA-546.
Thank You Ye for teh contribution.

Modified:
    incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java

Modified: incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java?rev=1377968&r1=1377967&r2=1377968&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java
(original)
+++ incubator/airavata/trunk/modules/commons/provenance-registry/src/main/java/org/apache/airavata/provenance/impl/jpa/AiravataJPAProvenanceRegistry.java
Tue Aug 28 03:49:18 2012
@@ -53,14 +53,12 @@ public class AiravataJPAProvenanceRegist
 		this.factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
 	}
 
-	@Override
 	public List<ActualParameter> loadOutput(String arg0)
 			throws RegistryException {
 		// TODO Auto-generated method stub
 		return null;
 	}
 
-	@Override
 	public String saveOutput(String arg0, List<ActualParameter> arg1)
 			throws RegistryException {
 		// TODO Auto-generated method stub
@@ -218,7 +216,7 @@ public class AiravataJPAProvenanceRegist
 		EntityManager em = factory.createEntityManager();
 		em.getTransaction().begin();
 		
-		Query q = em.createQuery("select w from Workflow_Data w.workflow_instanceID = :workflow_ID");
+		Query q = em.createQuery("SELECT w FROM Workflow_Data w WHERE w.workflow_instanceID = :workflow_ID");
 		q.setParameter("workflow_ID", arg0.getWorkflowInstanceId());
 		Workflow_Data wData = (Workflow_Data) q.getSingleResult();
 		
@@ -245,7 +243,7 @@ public class AiravataJPAProvenanceRegist
 		EntityManager em = factory.createEntityManager();
 		em.getTransaction().begin();
 		
-		Query q = em.createQuery("select w from Workflow_Data w.workflow_instanceID = :workflow_ID");
+		Query q = em.createQuery("SELECT w FROM Workflow_Data w WHERE w.workflow_instanceID = :workflow_ID");
 		q.setParameter("workflow_ID", arg0);
 		Workflow_Data wData = (Workflow_Data) q.getSingleResult();
 		
@@ -265,7 +263,7 @@ public class AiravataJPAProvenanceRegist
 		EntityManager em = factory.createEntityManager();
 		em.getTransaction().begin();
 		
-		Query q = em.createQuery("select w from Workflow_Data w.workflow_instanceID = :workflow_ID");
+		Query q = em.createQuery("SELECT w FROM Workflow_Data w WHERE w.workflow_instanceID = :workflow_ID");
 		q.setParameter("workflow_ID", arg0);
 		Workflow_Data wData = (Workflow_Data) q.getSingleResult();
 		
@@ -299,7 +297,7 @@ public class AiravataJPAProvenanceRegist
 		EntityManager em = factory.createEntityManager();
 		em.getTransaction().begin();
 		
-		Query q = em.createQuery("select w from Workflow_Data w.workflow_instanceID = :workflow_ID");
+		Query q = em.createQuery("SELECT w FROM Workflow_Data w WHERE w.workflow_instanceID = :workflow_ID");
 		q.setParameter("workflow_ID", arg0);
 		Workflow_Data wData = (Workflow_Data) q.getSingleResult();
 		
@@ -334,7 +332,7 @@ public class AiravataJPAProvenanceRegist
 		EntityManager em = factory.createEntityManager();
 		em.getTransaction().begin();
 		
-		Query q = em.createQuery("select w from Workflow_Data w.workflow_instanceID = :workflow_ID");
+		Query q = em.createQuery("SELECT w FROM Workflow_Data w WHERE w.workflow_instanceID = :workflow_ID");
 		q.setParameter("workflow_ID", arg0);
 		Workflow_Data wData = (Workflow_Data) q.getSingleResult();
 		



Mime
View raw message