Project

General

Profile

Revision 484a120f

ID484a120fe88418854c2ecfb60151ee75ddcc60d5
Parent 86459d9e
Child dabc3001

Added by Katja Luther about 3 years ago

minor

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/OccurrenceServiceImpl.java
747 747
                    if (derivative instanceof DnaSample) {
748 748
                        dto = new DNASampleDTO(derivative);
749 749
                    } else {
750
                        dto = PreservedSpecimenDTO.newInstance(derivative);
750
                        dto = new PreservedSpecimenDTO(derivative);
751 751
                    }
752 752
                    alreadyCollectedSpecimen.put(dto.getUuid(), dto);
753 753
                    dto.addAllDerivates(getDerivedUnitDTOsFor(dto, derivative, alreadyCollectedSpecimen));
......
862 862
                        derivedUnitDTO = new DNASampleDTO(derivedUnit);
863 863
                    } else {
864 864
                        derivedUnit = HibernateProxyHelper.deproxy(o, DerivedUnit.class);
865
                        derivedUnitDTO = PreservedSpecimenDTO.newInstance(derivedUnit);
865
                        derivedUnitDTO = new PreservedSpecimenDTO(derivedUnit);
866 866
                    }
867 867
                    if (alreadyCollectedSpecimen.get(derivedUnitDTO.getUuid()) == null){
868 868
                        alreadyCollectedSpecimen.put(derivedUnitDTO.getUuid(), derivedUnitDTO);
......
1034 1034
                if (specimen instanceof DnaSample){
1035 1035
                    originalDTO = new DNASampleDTO((DnaSample)specimen);
1036 1036
                } else {
1037
                    originalDTO = PreservedSpecimenDTO.newInstance((DerivedUnit)specimen);
1037
                    originalDTO = new PreservedSpecimenDTO((DerivedUnit)specimen);
1038 1038
                }
1039 1039
                originalDTO.addDerivate(derivedUnitDTO);
1040 1040
                fieldUnitDto = findFieldUnitDTO(originalDTO, fieldUnits, alreadyCollectedSpecimen);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)