sql = "DELETE a FROM FacilityDocument a";
query = manager.createQuery(sql);
query.executeUpdate();
for (int i = 0; i < docList.size(); i++) {
FacilityDocumentDetails d = docList.get(i);
FacilityDocument entity = new FacilityDocument();
entity.setSnils(d.snils);
entity.setExcemption(d.exempId == 0 ? null : findEntity(Excemption.class, d.exempId));
entity.setDocumentName(d.docType);
entity.setDocumentSN(d.docSN);