Package maissocial.exception

Examples of maissocial.exception.BairroJaCadastradaException


        Bairro br2 = this.brRep.pesquisarBairroPorNome(br.getNome());
        if(br2 == null){
            this.brRep.salvarBairro(br);
        }else{
            throw new BairroJaCadastradaException("Bairro já cadastrado!");
        }

    }
View Full Code Here


        Bairro br2 = this.brRep.pesquisarBairroPorNome(br.getNome());
        if(br2 == null){
            this.brRep.alterarBairro(br);
        }else{
            throw new BairroJaCadastradaException("Bairro já cadastrado!");
        }
    }
View Full Code Here

        Uss uss2 = this.ussRep.pesquisarUssPorNome(uss.getNome());
        if(uss2 == null){
            this.ussRep.salvarUss(uss);
        }else{
            throw new BairroJaCadastradaException("Usuario de Servico Social já cadastrado!");
        }

    }
View Full Code Here

TOP

Related Classes of maissocial.exception.BairroJaCadastradaException

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.