Skip to content

Commit

Permalink
JBPM-3866 - Avoid task duplicates when querying for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mswiderski committed Nov 23, 2012
1 parent fc5be7a commit e8fbea9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 54 deletions.
Expand Up @@ -50,7 +50,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -101,7 +101,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -154,7 +154,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -207,7 +207,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -260,7 +260,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -313,7 +313,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -366,7 +366,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -421,7 +421,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -473,7 +473,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -526,7 +526,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -577,7 +577,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -628,7 +628,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -677,7 +677,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -727,7 +727,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -777,7 +777,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -828,7 +828,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -882,6 +882,7 @@ where
and

t.taskData.activationTime &lt; :since
group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -930,7 +931,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -982,7 +983,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down
Expand Up @@ -50,7 +50,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -101,7 +101,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -154,7 +154,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -207,7 +207,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -260,7 +260,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -313,7 +313,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -366,7 +366,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -421,7 +421,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -473,7 +473,7 @@ where

t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -526,7 +526,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -577,7 +577,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -628,7 +628,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -677,7 +677,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -727,7 +727,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -777,7 +777,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -828,7 +828,7 @@ where

t.taskData.status in (:status) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -882,6 +882,7 @@ where
and

t.taskData.activationTime &lt; :since
group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -930,7 +931,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down Expand Up @@ -982,7 +983,7 @@ where
or t.descriptions.size = 0
) and

t.taskData.expirationTime is null
t.taskData.expirationTime is null group by t.id
</query>
<!-- hint name="org.hibernate.timeout" value="200"/ -->
</named-query>
Expand Down

0 comments on commit e8fbea9

Please sign in to comment.