Query query = aSession.createQuery(hql);
query.setInteger(0, dossierId.intValue());
query.setInteger(1, pageId.intValue());
query.setInteger(2, workflowProcessId.intValue());
SbiDossierPartsTemp hibObjTemp = (SbiDossierPartsTemp) query.uniqueResult();
if (hibObjTemp == null) {
hibObjTemp = new SbiDossierPartsTemp();
SbiObjects objHib = (SbiObjects) aSession.load(SbiObjects.class, dossierId);
hibObjTemp.setSbiObject(objHib);
hibObjTemp.setPageId(pageId);
hibObjTemp.setSbiDossierBinaryContentsTemps(new HashSet());
hibObjTemp.setWorkflowProcessId(workflowProcessId);
updateSbiCommonInfo4Insert(hibObjTemp);
aSession.save(hibObjTemp);
}
/*hql = "from SbiDossierBinaryContentsTemp binTemp where binTemp.sbiDossierPartsTemp.pageId=" + pageId.toString() +
" and binTemp.sbiDossierPartsTemp.sbiObject.biobjId=" + dossierId +