Project

General

Profile

« Previous | Next » 

Revision 1d9ed98e

Added by Andreas Kohlbecker over 3 years ago

ref #9238 extending SpecimenTypeDesignationDTO with more fields and associated DTOs, introducing ReferenceDTO, supressing unwanted and dangerous fields of RegistrationDTO

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DerivateDTO.java
78 78
     * @return
79 79
     */
80 80
    public static DerivateDTO newInstance(SpecimenOrObservationBase sob){
81
        if(sob == null) {
82
            return null;
83
        }
81 84
        DerivateDTO derivateDto;
82 85
        if (sob.isInstanceOf(FieldUnit.class)){
83 86
            derivateDto = new FieldUnitDTO(HibernateProxyHelper.deproxy(sob, FieldUnit.class));
......
161 164
        this.specimenTypeDesignations = new HashSet<>();
162 165
        for (SpecimenTypeDesignation typeDes: specimenTypeDesignations){
163 166
            if (typeDes != null){
164
                this.specimenTypeDesignations.add(new SpecimenTypeDesignationDTO(typeDes, null));
167
                this.specimenTypeDesignations.add(new SpecimenTypeDesignationDTO(typeDes));
165 168
            }
166 169
        }
167 170

  

Also available in: Unified diff