Convert a query to use uuid

pull/14/head
Sam Bosley 12 years ago
parent 89ed5a9b31
commit ce42d6a8a6

@ -306,7 +306,9 @@ public final class TagService {
}
public TodorooCursor<TagData> getTagDataForTask(long taskId, Criterion additionalCriterion, Property<?>... properties) {
Criterion criterion = TagData.NAME.in(Query.select(TagMetadata.TAG_NAME).from(Metadata.TABLE).where(MetadataCriteria.byTaskAndwithKey(taskId, TagMetadata.KEY)));
Criterion criterion = TagData.UUID.in(Query.select(TagMetadata.TAG_UUID).from(Metadata.TABLE).where(
Criterion.and(Metadata.DELETION_DATE.eq(0),
MetadataCriteria.byTaskAndwithKey(taskId, TagMetadata.KEY))));
return tagDataService.query(Query.select(properties).where(Criterion.and(criterion, additionalCriterion)));
}

Loading…
Cancel
Save