hibBinContent.setContent(objNote.getContent());
Integer idBin = (Integer)aSession.save(hibBinContent);
// recover the saved binary hibernate object
hibBinContent = (SbiBinContents) aSession.load(SbiBinContents.class, idBin);
// store the object note
SbiObjNotes hibObjNote = new SbiObjNotes();
hibObjNote.setExecReq(execReq);
hibObjNote.setSbiBinContents(hibBinContent);
hibObjNote.setSbiObject(hibBIObject);
hibObjNote.setOwner(objNote.getOwner());
hibObjNote.setIsPublic(objNote.getIsPublic());
hibObjNote.setCreationDate(now);
hibObjNote.setLastChangeDate(now);
updateSbiCommonInfo4Insert(hibObjNote);
aSession.save(hibObjNote);
tx.commit();
} catch (HibernateException he) {
logException(he);