Package org.cipres.treebase.domain.taxon

Examples of org.cipres.treebase.domain.taxon.TaxonLabelHome.findAll()


    rt.setupContext();
    TaxonLabelHome tlHome = ContextManager.getTaxonLabelHome();
   
    // Map taxonlabels to the submissions that contain them
    Map<TaxonLabel,List<Submission>> submissions = new HashMap<TaxonLabel,List<Submission>> ();
    for (Object o : tlHome.findAll(Submission.class)) {
      Submission sub = (Submission) o;
      for (TaxonLabel tl : sub.getSubmittedTaxonLabelsReadOnly()) {
        if (! submissions.containsKey(tl)) {
          submissions.put(tl, new LinkedList<Submission> ());
        }
View Full Code Here


        }
        submissions.get(tl).add(sub);
      }
    }

    for (Object o : tlHome.findAll(TaxonLabel.class)) {
      TaxonLabel tl = (TaxonLabel) o;
      Submission correctSub = tl.getSubmission();
      List<Submission> otherSubs = submissions.get(tl);

      warn("#" + tl.getId());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.