Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysAccessUser


    for(SysMenu menu:listMenu){
      SysAccessUserId sysAccessUserId = new SysAccessUserId();
      sysAccessUserId.setIdAdherent(user.getId().getIdAdherent());
      sysAccessUserId.setIdUser(user.getId().getIdUser());
      sysAccessUserId.setIdMenu(menu.getIdMenu());
      SysAccessUser sysAccessUser=(SysAccessUser) this.find(SysAccessUser.class, sysAccessUserId, em);
      if(sysAccessUser!=null)sysAccessUser.setIsAccept(menu.isSelected()?"True":"False");
      if(sysAccessUser==null) sysAccessUser=new SysAccessUser(sysAccessUserId,menu,sysUsers,menu.isSelected()?"True":"False");
      persist(sysAccessUser, em);
    }
    tx.commit();
    return new Resultat(true,"Validation effectuee avec succes");
    }catch(Exception e){
View Full Code Here

TOP

Related Classes of sn.unitech.stock.entity.SysAccessUser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.