Project

General

Profile

Revision 6c5e8c9a

ID6c5e8c9a9a18a12cbf8fdd6b74e9aa263486ca66
Parent 9672401c
Child 8d2b7d49

Added by Andreas Müller about 3 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxonGraph/AbstractHibernateTaxonGraphProcessor.java
211 211
        Taxon taxon;
212 212
        if(taxonName.getTaxa().size() == 0){
213 213
            if(taxonNamePersisted != null){
214
            Reference secRef = secReference();
214
                Reference secRef = secReference();
215 215
                taxon = Taxon.NewInstance(taxonNamePersisted, secRef);
216 216
                session.saveOrUpdate(taxon);
217 217
                return taxon;
......
371 371
            q.setParameter("specificEpithet", specificEpithet);
372 372
        }
373 373

  
374
        @SuppressWarnings("unchecked")
374 375
        List<TaxonName> result = q.list();
375 376
        return result;
376 377
    }
......
382 383
        q.setParameter("relatedTaxon", relatedTaxon);
383 384
        q.setParameter("type", type);
384 385
        q.setParameter("citation", citation);
386
        @SuppressWarnings("unchecked")
385 387
        List<TaxonRelationship> rels = q.list();
386 388
        return rels;
387 389
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)