Author: mriou
Date: Wed Aug 30 11:11:36 2006
New Revision: 438571

URL: http://svn.apache.org/viewvc?rev=438571&view=rev
Log:
Small bug in process querying..

Modified:
    
incubator/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java

Modified: 
incubator/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java?rev=438571&r1=438570&r2=438571&view=diff
==============================================================================
--- 
incubator/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java
 (original)
+++ 
incubator/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionImpl.java
 Wed Aug 30 11:11:36 2006
@@ -170,15 +170,18 @@
 
         // Filtering using an example object
         HProcess exampleProcess = new HProcess();
-        
crit.add(Example.create(exampleProcess).ignoreCase().enableLike().excludeZeroes());
+        
crit.add(Example.create(exampleProcess).ignoreCase().enableLike().excludeZeroes()
+                
.excludeProperty("retired").excludeProperty("active").excludeProperty("version"));
         // TODO Implement process status filtering when status will exist
 
         // TODO separate localname and namespace to provide proper querying
         if (filter != null) {
-            if (filter.getNameFilter() != null)
+            if (filter.getNameFilter() != null) {
                 
exampleProcess.setTypeName(filter.getNameFilter().replaceAll("\\*", "%"));
-            if (filter.getNamespaceFilter() != null)
+            }
+            if (filter.getNamespaceFilter() != null) {
                 
exampleProcess.setTypeNamespace(filter.getNamespaceFilter().replaceAll("\\*", 
"%"));
+            }
 
             // Specific filter for deployment date.
             if (filter.getDeployedDateFilter() != null) {
@@ -206,6 +209,7 @@
 
             // Ordering
             if (filter.getOrders() != null) {
+                System.out.println("######## ORDER " + filter.getOrders());
                 for (String key : filter.getOrders()) {
                     boolean ascending = true;
                     String orderKey = key;


Reply via email to