Skip to content
Snippets Groups Projects
Commit 34a67b69 authored by felmer's avatar felmer
Browse files

bug fixed concerning uploading to CIFEX: Transform Hibernate collections.

SVN: 10683
parent d5726aa5
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.openbis.generic.server.business.IDataStoreServiceFactory;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.IExternalDataDAO;
import ch.systemsx.cisd.openbis.generic.server.util.HibernateTransformer;
import ch.systemsx.cisd.openbis.generic.shared.IDataStoreService;
import ch.systemsx.cisd.openbis.generic.shared.basic.BasicConstant;
import ch.systemsx.cisd.openbis.generic.shared.dto.DataPE;
......@@ -267,7 +268,9 @@ public final class ExternalDataTable extends AbstractExternalDataBusinessObject
{
IDataStoreService service = dssFactory.create(dataStore.getRemoteUrl());
String sessionToken = dataStore.getSessionToken();
service.uploadDataSetsToCIFEX(sessionToken, dataSets, context);
List<ExternalDataPE> cleanDataSets =
HibernateTransformer.HIBERNATE_BEAN_REPLICATOR.get().copy(dataSets);
service.uploadDataSetsToCIFEX(sessionToken, cleanDataSets, context);
}
private void deleteDataSets(DataStorePE dataStore, List<String> locations)
......
......@@ -54,7 +54,7 @@ import ch.systemsx.cisd.common.exceptions.NotImplementedException;
public final class HibernateTransformer implements MethodInterceptor
{
private final static ThreadLocal<HibernateBeanReplicator> HIBERNATE_BEAN_REPLICATOR =
public final static ThreadLocal<HibernateBeanReplicator> HIBERNATE_BEAN_REPLICATOR =
new ThreadLocal<HibernateBeanReplicator>()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment