Project

General

Profile

Revision ee278452

IDee278452eb7b8d62c9345f3b026cd7c82246a0af
Parent 3de1071a
Child 1bce78aa

Added by Andreas Müller over 2 years ago

fix compile error and some cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/common/ICdmEntityDao.java
28 28
/**
29 29
 * An data access interface that all data access classes implement
30 30
 * @author m.doering
31
 * @version 1.0
32 31
 * @created 02-Nov-2007 19:36:10
33 32
 */
34 33
public interface ICdmEntityDao<T extends CdmBase> {
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/CommonServiceImpl.java
414 414
    public <T extends CdmBase> Map<UUID,T> save(Collection<T> newInstances) {
415 415
        //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao
416 416
        //and generally the saveAll method should work for other CdmBase types with generics removed
417
        return originalSourceDao.saveAll((Collection)newInstances);
417
        return (Map)originalSourceDao.saveAll((Collection)newInstances);
418 418
    }
419 419

  
420 420
    @Override
......
422 422
    public <T extends CdmBase> Map<UUID,T> saveOrUpdate(Collection<T> newInstances) {
423 423
        //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao
424 424
        //and generally the saveAll method should work for other CdmBase types with generics removed
425
        return originalSourceDao.saveOrUpdateAll((Collection)newInstances);
425
        return (Map)originalSourceDao.saveOrUpdateAll((Collection)newInstances);
426 426
    }
427 427

  
428 428

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)