logger.error("The Domain with value_id= "+dataSetActiveDetail.getCategoryId()+" does not exist.");
throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
}
}
Date currentTStamp = new Date();
SbiDataSetConfig dsConfig = new SbiDataSetConfig();
dsConfig.setLabel(dataSet.getLabel());
dsConfig.setDescription(dataSet.getDescription());
dsConfig.setName(dataSet.getName());
updateSbiCommonInfo4Insert(dsConfig);
String userIn = dsConfig.getCommonInfo().getUserIn();
String sbiVersionIn = dsConfig.getCommonInfo().getSbiVersionIn();
hibDataSet.setUserIn(userIn);
hibDataSet.setSbiVersionIn(sbiVersionIn);
hibDataSet.setVersionNum(1);
hibDataSet.setTimeIn(currentTStamp);
hibDataSet.setActive(true);
hibDataSet.setTransformer(transformer);
hibDataSet.setPivotColumnName(dataSetActiveDetail.getPivotColumnName());
hibDataSet.setPivotRowName(dataSetActiveDetail.getPivotRowName());
hibDataSet.setPivotColumnValue(dataSetActiveDetail.getPivotColumnValue());
hibDataSet.setNumRows(dataSetActiveDetail.isNumRows());
hibDataSet.setCategory(category);
hibDataSet.setParameters(dataSetActiveDetail.getParameters());
hibDataSet.setDsMetadata(dataSetActiveDetail.getDsMetadata());
Integer dsId =(Integer) aSession.save(dsConfig);
dsConfig.setDsId(dsId);
hibDataSet.setSbiDsConfig(dsConfig);
aSession.save(hibDataSet);
idToReturn = dsId;