Package ma.glasnost.orika.impl.generator

Examples of ma.glasnost.orika.impl.generator.EclipseJdtCompilerStrategy


    Authority adminAuthority = new Authority("admin");
    adminAuthotityId = getSession().save(adminAuthority);

    DefaultMapperFactory.Builder builder = new DefaultMapperFactory.Builder();
    builder.unenhanceStrategy(new HibernateUnenhanceStrategy());
    builder.compilerStrategy(new EclipseJdtCompilerStrategy());
    MapperFactory factory = builder.build();
    mapperFacade = factory.getMapperFacade();

    getSession().flush();
    getSession().clear();
View Full Code Here


  @Test
  public void testExcludedFields() {

    MapperFactory factory =
        new DefaultMapperFactory.Builder()
          .compilerStrategy(new EclipseJdtCompilerStrategy())
          .build();

   
    factory.registerClassMap(factory.classMap(Source.class, Dest.class)
        .exclude("id")
View Full Code Here

  @Test
  public void testOverrideExcludedFields() {

    MapperFactory factory =
        new DefaultMapperFactory.Builder()
          .compilerStrategy(new EclipseJdtCompilerStrategy())
          .build();

   
    factory.registerClassMap(factory.classMap(Source.class, Dest.class)
        .exclude("id")
View Full Code Here

        }
    }
   
    private static MapperFacade createMapperFacade() {
        DefaultMapperFactory.Builder builder = new DefaultMapperFactory.Builder();
        builder.compilerStrategy(new EclipseJdtCompilerStrategy());
        MapperFactory factory = builder.build();
       
        factory.registerMapper(new MergingMapper());
        factory.registerConcreteType(new TypeBuilder<Collection<Entity>>() {}.build(), new TypeBuilder<ArrayList<Entity>>() {}.build());
        return factory.getMapperFacade();
View Full Code Here

       
        Type<List<FlatData>> typeOf_FlatData = new TypeBuilder<List<FlatData>>(){}.build();
        Type<List<Year>> typeOf_Year = new TypeBuilder<List<Year>>(){}.build();
       
        MapperFactory mapperFactory = new DefaultMapperFactory.Builder()
            .compilerStrategy(new EclipseJdtCompilerStrategy())
            .classMapBuilderFactory(new ScoringClassMapBuilder.Factory())
            .build();
       
        mapperFactory.classMap(typeOf_FlatData, typeOf_Year).byDefault().register();
       
View Full Code Here

        if (debugMode) {
            if (Boolean.valueOf(System.getProperty(DISABLE_DEBUG_MODE))) {
                LOGGER.warn("Debug mode was requested via MappingUtil when it was explicitly disabled");
                return getMapperFactory();
            } else {
                return new DefaultMapperFactory.Builder().compilerStrategy(new EclipseJdtCompilerStrategy()).build();
            }
        } else {
            return getMapperFactory();
        }
    }
View Full Code Here

public class InheritanceTestcase {
   
    @Test
    public void testInheritance() {
       
        MapperFactory mapperFactory = new DefaultMapperFactory.Builder().compilerStrategy(new EclipseJdtCompilerStrategy()).build();
       
        mapperFactory.registerClassMap(ClassMapBuilder.map(BaseEntity.class, BaseEntityDto.class).byDefault().toClassMap());
       
        ClassMapBuilder<BaseUser, BaseUserDto> userClassMapBuilder = ClassMapBuilder.map(BaseUser.class, BaseUserDto.class);
        userClassMapBuilder.customize(new CustomMapper<BaseUser, BaseUserDto>() {
View Full Code Here

TOP

Related Classes of ma.glasnost.orika.impl.generator.EclipseJdtCompilerStrategy

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.