if(((ScriptDataSetDetail)dsActiveDetailToSet).getLanguageScript()!=null){
((SbiScriptDataSet)hibDataSet).setLanguageScript(((ScriptDataSetDetail)dsActiveDetailToSet).getLanguageScript());
}
}
SbiDomains transformer = null;
if (dsActiveDetailToSet.getTransformerId() != null){
Criterion aCriterion = Expression.eq("valueId", dsActiveDetailToSet.getTransformerId());
Criteria criteria = aSession.createCriteria(SbiDomains.class);
criteria.add(aCriterion);
transformer = (SbiDomains) criteria.uniqueResult();
if (transformer == null){
logger.error("The Domain with value_id= "+dsActiveDetailToSet.getTransformerId()+" does not exist.");
throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
}
}
SbiDomains category = null;
if (dsActiveDetailToSet.getCategoryId()!= null){
Criterion aCriterion = Expression.eq("valueId", dsActiveDetailToSet.getCategoryId());
Criteria criteria = aSession.createCriteria(SbiDomains.class);
criteria.add(aCriterion);
category = (SbiDomains) criteria.uniqueResult();