Examples of FirmaDao


Examples of es.ua.dccia.datos.FirmaDao

        firma.setPublica(firmaTO.isPublica());
       
        //actualizar campos de relación y otros
        peticion.getFirmas().add(firma);
        peticion.setFirmasConseguidas(peticion.getFirmasConseguidas()+1);
        new FirmaDao(em).create(firma);
        em.getTransaction().commit();
        em.close();
        return firma.getId();
    }
View Full Code Here

Examples of es.ua.dccia.datos.FirmaDao

    }
   
    public Firma getFirma(long idFirma) {
        EntityManager em = PersistenceManager.getInstance().createEntityManager();
        em.getTransaction().begin();
        Firma firma = new FirmaDao(em).find(idFirma);
        if (firma!=null)
            if (firma.isPublica())
                return firma;
            else throw new AccesoNoPermitidoException("La firma no es pública");
        else throw new EntidadNoEncontradaException("No existe firma con el id " + idFirma);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.