Project

General

Profile

Revision a4ea6502

IDa4ea650264157dff61c6e4e351f9d1bf6aa79bb7
Parent 85b0276d
Child 1fe09983

Added by Katja Luther over 1 year ago

fix #7249: deleteTypeDesignation for uuids needs to be transactional

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/NameServiceImpl.java
194 194
    }
195 195

  
196 196
    @Override
197
    @Transactional(readOnly = false)
197

  
198 198
    public DeleteResult deleteTypeDesignation(TaxonName name, TypeDesignationBase typeDesignation){
199 199
    	if(typeDesignation!=null && typeDesignation.getId()!=0){
200 200
    		typeDesignation = HibernateProxyHelper.deproxy(referencedEntityDao.load(typeDesignation.getUuid()), TypeDesignationBase.class);
......
225 225

  
226 226

  
227 227
    @Override
228
    @Transactional(readOnly = false)
228 229
    public DeleteResult deleteTypeDesignation(UUID nameUuid, UUID typeDesignationUuid){
229 230
        TaxonName nameBase = load(nameUuid);
230 231
        TypeDesignationBase typeDesignation = HibernateProxyHelper.deproxy(referencedEntityDao.load(typeDesignationUuid), TypeDesignationBase.class);
......
235 236
     * @param name
236 237
     * @param typeDesignation
237 238
     */
239
    @Transactional
238 240
    private void removeSingleDesignation(TaxonName name, TypeDesignationBase typeDesignation) {
239 241
        name.removeTypeDesignation(typeDesignation);
240 242
        if (typeDesignation.getTypifiedNames().isEmpty()){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)