tx.begin();
try{
this.persist(events, em);
for(int i=0;i<listDetailEvent.size();i++){
listDetailEvent.get(i).setEvents(events);
listDetailEvent.get(i).setId(new DetailEventId(events.getIdLot(),i));
this.persist(listDetailEvent.get(i), em);
}
new SysEcritsDao(listDetailEvent,listTaxe,em).persistAllEcrits();
tx.commit();
return new Resultat(true,"Validation effectuee avec succes.",events.getIdLot());