List constructionDefectList = constructionExample.getExampleDefects();
session.save(constructionExample);
// constructionExample = (ConstructionExample) session.load(ConstructionExample.class, constructionExample.getExampleId());
for (int l = 0; l < constructionDefectList.size(); l++) {
ConstructionDefect constructionDefect = (ConstructionDefect) constructionDefectList.get(l);
session.evict(constructionDefect);
constructionDefect.setConstructionDefectId(null);
constructionDefect.setExampleId(constructionExample.getExampleId());
constructionDefect.setConstructionDefectPosition(new Integer(l));
List defectParameters = constructionDefect.getDefectParameters();
session.save(constructionDefect);