Revision fff47116
Added by Patrick Plitzner about 8 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/NameServiceImpl.java | ||
---|---|---|
196 | 196 |
*/ |
197 | 197 |
@Override |
198 | 198 |
public DeleteResult deleteTypeDesignation(TaxonNameBase name, TypeDesignationBase typeDesignation){ |
199 |
if(typeDesignation.getId()!=0){ |
|
200 |
typeDesignation = HibernateProxyHelper.deproxy(referencedEntityDao.load(typeDesignation.getUuid()), TypeDesignationBase.class); |
|
201 |
} |
|
202 |
|
|
199 | 203 |
DeleteResult result = new DeleteResult(); |
200 | 204 |
if (name == null && typeDesignation == null){ |
201 | 205 |
result.setError(); |
Also available in: Unified diff
Reload type designation before deleting it to avoid caching conflicts.