From 090e3fa55e302f2a490d41a3941489f17fcc859b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 21 Dec 2025 19:37:32 +0000 Subject: [PATCH 1/2] Initial plan From e78607ab9114f37d8a7418317ccebc08c91e0354 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 21 Dec 2025 19:41:07 +0000 Subject: [PATCH 2/2] Fix HQL queries in findTaxonLabelSets and findSubmissions methods Co-authored-by: rvosa <106490+rvosa@users.noreply.github.com> --- .../java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java b/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java index 7866f2f62..4d63c8d5d 100644 --- a/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java +++ b/treebase-core/src/main/java/org/cipres/treebase/dao/taxon/TaxonLabelDAO.java @@ -390,7 +390,7 @@ public Collection findTaxonVariantByFullName(String tvFullName) { public Set findSubmissions(TaxonLabel taxonLabel) { Query q = getSession() - .createQuery("select s from Submission s, TaxonLabel tl where tl = :tl and tl member of s.submittedTaxonLabels"); + .createQuery("select s from Submission s where :tl member of s.submittedTaxonLabels"); q.setParameter("tl", taxonLabel); Set result = new HashSet (); result.addAll(q.list()); @@ -402,7 +402,7 @@ public Set findSubmissions(TaxonLabel taxonLabel) { */ public Set findTaxonLabelSets(TaxonLabel taxonLabel) { Query q = getSession() - .createQuery("select tls from TaxonLabelSet tls, TaxonLabel tl where tl = :tl and tl member of tls.taxonLabelList"); + .createQuery("select tls from TaxonLabelSet tls where :tl member of tls.taxonLabelList"); q.setParameter("tl", taxonLabel); Set result = new HashSet (); result.addAll(q.list());