Package br.com.bfmapper

Examples of br.com.bfmapper.Converter$PropertyDefault


public class PneuMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(PneuCanonico.class, Pneu.class) {{
      add("codigo", "id").withShallowCopy();
    }});
  }
View Full Code Here


public class LivroMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(LivroCanonico.class, Livro.class) {{
        excludeEqualsProperties("anoPublicacao");
    }});
   
  }
View Full Code Here

public class PessoaMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(PessoaCanonico.class, Pessoa.class));
  }
View Full Code Here

public class OuterInnerMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(OuterCanonico.class, Outer.class) {{
      add("innerCanonico", "inner");
    }});
    MappingRules.addRule(new Converter(OuterCanonico.InnerCanonico.class, Outer.Inner.class));
  }
View Full Code Here

public class EnderecoTestMappingRules implements RulesMapper {

    @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(EnderecoCanonico.class, Endereco.class) {{
      add("localidade", "logradouro");
      add("nro", "numero");
      add("bairroCaiK1a", "bairro");
     
      addCustomTransformer(new UpperCaseCustomTransformer(Endereco.class));
View Full Code Here

public class RecursiveObjectMappingRules implements RulesMapper {

  @PostConstruct
  public void loadRules() {
    MappingRules.addRule(new Converter(ObjectRecursiveModel1.class, ObjectCanonicRecursiveModel1.class));
    MappingRules.addRule(new Converter(ObjectRecursiveModel2.class, ObjectCanonicRecursiveModel2.class));
  }
View Full Code Here

public class ContratoMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    addRule(new Converter(ContratoCanonico.class, Contrato.class));
   
    addRule(new Converter(ContratoCanonico.Dependente.class, Dependente.class));
  }
View Full Code Here

public class ProdutoMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(ProdutoCanonico.class, Produto.class) {{
      add("marca", "marca").with(new LowerCaseTransformer());
    }});
  }
View Full Code Here

public class AlunoMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(AlunoCanonico.class, Aluno.class) {{
      add("idade", "idade");
      add("dataAniversario", "dataAniversario").with(new DateTimeTransformer("ddMMyyyy"));
      add("tipoAluno", "tipoAluno");
      addDefault(AlunoCanonico.class, "sexo", "F");
    }});
View Full Code Here

public class ObjectModelMappingRules implements RulesMapper {

  @Override
  public void loadRules() {
    MappingRules.addRule(new Converter(ObjectCanonicModel.class, ObjectModel.class));
  }
View Full Code Here

TOP

Related Classes of br.com.bfmapper.Converter$PropertyDefault

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.