Package DAO

Examples of DAO.UsuarioDAO.salvar()


    public void inserirUsuario() {
        UsuarioDAO obj = new UsuarioDAO();
        Date data = new Date();
        this.usuario.setUsuDtCadastro(data);
        this.usuario.setUsuSnAtivo(true);
        obj.salvar(this.usuario);
        FacesMessage msg = new FacesMessage("O Usuario foi cadastrado com sucesso!");
        FacesContext.getCurrentInstance().addMessage("msgUpdate", msg);
    }
   
    public void saveEdit(Usuario usuario){
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.