Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysActiviTypUnitId


      /*  Verifie si unite existe avant de l'inserer */
    if((this.find(SysTypUnite.class,sysUnite.getSysTypUnite().getIdTypUnite(),em))==null){
       this.persist(sysUnite.getSysTypUnite(), em);
    }
      /*  Verifie si type unite existe dans l'activite avant de l'inserer */
    SysActiviTypUnitId sysActiviTypUnitId=new SysActiviTypUnitId(sysUnite.getSysTypUnite().getIdTypUnite(),Integer.parseInt(idActivite));
    if(this.find(SysActiviTypUnit.class,sysActiviTypUnitId, em)==null){
    SysActiviTypUnit sysActiviTypUnit=new SysActiviTypUnit();
    sysActiviTypUnit.setId(sysActiviTypUnitId);
    sysActiviTypUnit.setSysActivite(new SysActivite(Integer.parseInt(idActivite)));
    sysActiviTypUnit.setSysTypUnite(sysUnite.getSysTypUnite());
View Full Code Here

TOP

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

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.