fix non compiling code in CommonServiceImpl (works on other installations but not...
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / CommonServiceImpl.java
index 6a76d18cbb82565bd48b7ba93f014f4d46c8ae17..d58c3353e25a5e99592a5f186a770c688ee83943 100644 (file)
@@ -426,7 +426,7 @@ public class CommonServiceImpl /*extends ServiceBase<OriginalSourceBase,IOrigina
     public <T extends CdmBase> Map<UUID,T> save(Collection<T> newInstances) {\r
         //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao\r
         //and generally the saveAll method should work for other CdmBase types with generics removed\r
-        return originalSourceDao.saveAll((Collection)newInstances);\r
+        return (Map<UUID, T>) originalSourceDao.saveAll((Collection)newInstances);\r
     }\r
 \r
     @Override\r
@@ -434,7 +434,7 @@ public class CommonServiceImpl /*extends ServiceBase<OriginalSourceBase,IOrigina
     public <T extends CdmBase> Map<UUID,T> saveOrUpdate(Collection<T> newInstances) {\r
         //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao\r
         //and generally the saveAll method should work for other CdmBase types with generics removed\r
-        return originalSourceDao.saveOrUpdateAll((Collection)newInstances);\r
+        return (Map<UUID, T>) originalSourceDao.saveOrUpdateAll((Collection)newInstances);\r
     }\r
 \r
 \r