tx.begin();
DetailCommand detailCommand=new DetailCommand();
detailCommand= listDetailCommand.get(0);
commande.setFournisseur( new Fournisseur(detailCommand.getCodFourn()));
SysUsers sysUsers=new SysUsers();
sysUsers.setId(new SysUsersId(detailCommand.getCodUser(),detailCommand.getSysProduit().getSysAdherent().getIdAdherent()));
commande.setSysDate(new Date());
commande.setSysUsers(sysUsers);
this.persist(commande, em);
for(int i=0;i<listDetailCommand.size();i++){
detailCommand=new DetailCommand();