hibKpi.setModelReference(kpi.getModelReference());
hibKpi.setTargetAudience(kpi.getTargetAudience());
hibKpi.setIsAdditive(kpi.getIsAdditive());
if(kpi.getMeasureTypeId()!=null){
SbiDomains measureType=(SbiDomains)session.load(SbiDomains.class, kpi.getMeasureTypeId());
hibKpi.setSbiDomainsByMeasureType(measureType);
}
if(kpi.getKpiTypeId()!=null){
SbiDomains kpiType=(SbiDomains)session.load(SbiDomains.class, kpi.getKpiTypeId());
hibKpi.setSbiDomainsByKpiType(kpiType);
}
if(kpi.getMetricScaleId()!=null){
SbiDomains metricScaleType=(SbiDomains)session.load(SbiDomains.class, kpi.getMetricScaleId());
hibKpi.setSbiDomainsByMetricScaleType(metricScaleType);
}
// load dataset
if (kpi.getKpiDsId() != null) {