Project

General

Profile

« Previous | Next » 

Revision a2af4a1c

Added by Andreas Müller over 2 years ago

adapt getIdentifier methods (cont.)

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/identifier/IdentifierImport.java
175 175
                this.commitTransaction(tx);
176 176
                return null;
177 177
            }
178
            Set<Identifier> existingIdentifiers = entity.getIdentifiers_(idType.getUuid());
178
            Set<Identifier> existingIdentifiers = entity.getIdentifiers(idType.getUuid());
179 179
            if (!existingIdentifiers.isEmpty()){
180 180
                identifier = existingIdentifiers.iterator().next();
181 181
                if (!CdmUtils.nullSafeEqual(identifier.getIdentifier(), value)){
......
198 198
                this.commitTransaction(tx);
199 199
                return null;
200 200
            }else{
201
                Set<Identifier> existingIdentifiers = entity.getIdentifiers_(idType.getUuid());
201
                Set<Identifier> existingIdentifiers = entity.getIdentifiers(idType.getUuid());
202 202
                if (existingIdentifiers.size() == 1){
203 203
                    identifier = existingIdentifiers.iterator().next();
204 204
                    if (!CdmUtils.nullSafeEqual(identifier.getIdentifier(), value)){

Also available in: Unified diff