Package pl.edu.prz.kia.ntp.M2

Examples of pl.edu.prz.kia.ntp.M2.ConversionService


     
    }

    public void updateRepertuar(RepertuarDTO repertuar) {
        M2Service service;
        Repertuar entity;
        service = new M2Service(em);
        entity = ConversionService.toEJB(repertuar);
        service.updateRepertuar(entity);
    }
View Full Code Here


        service.updateRepertuar(entity);
    }

    public void removeRepertuar(RepertuarDTO repertuar) {
        M2Service service;
        Repertuar entity;
        service = new M2Service(em);
        entity = ConversionService.toEJB(repertuar);
        service.removeRepertuar(entity);
    }
View Full Code Here

    /**
     * @param seans
     * @return
     */
    public static Seans toEJB(SeansDTO seans){
        Seans entity = new Seans();
        entity.setData(seans.getData());
        entity.setGodzina(seans.getGodzina());
        entity.setId_seansu(seans.getId_seansu());
        entity.setRepertuar(seans.getRepertuar());
        return entity;
    }
View Full Code Here

    /**
     * @param seans
     */
    public void removeSeans(Seans seans)
    {
        Seans bil = em.find(Seans.class, seans.getId_seansu());
        em.remove(bil);
    }
View Full Code Here

        return seanse;
    }
   
    public void addSeans(SeansDTO seans) {
        M2Service service;
        Seans entity;
        service = new M2Service(em);
        entity = ConversionService.toEJB(seans);
        service.addSeans(entity);
     
    }
View Full Code Here

     
    }

    public void updateSeans(SeansDTO seans) {
        M2Service service;
        Seans entity;
        service = new M2Service(em);
        entity = ConversionService.toEJB(seans);
        service.updateSeans(entity);
    }
View Full Code Here

        service.updateSeans(entity);
    }

    public void removeSeans(SeansDTO seans) {
        M2Service service;
        Seans entity;
        service = new M2Service(em);
        entity = ConversionService.toEJB(seans);
        service.removeSeans(entity);
    }
View Full Code Here

TOP

Related Classes of pl.edu.prz.kia.ntp.M2.ConversionService

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.