Package net.freedom.gj.beans.config

Examples of net.freedom.gj.beans.config.SimpleFileMapperConfiguration


    }

   
    @Provides @Singleton
     MapperConfiguration provideMapperConfiguration(){
        SimpleFileMapperConfiguration fileConfig = new SimpleFileMapperConfiguration();
        fileConfig.setConfigurationFile("/net/freedom/gj/beans/txt/beanA-to-beanB-mapping1.txt");
        fileConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
        fileConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");
       
        return fileConfig;
     }
View Full Code Here


        fileConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
        fileConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");

        //You can use multiple configuration files to map single complex object.
        //Optionally,using text custom format file.
        SimpleFileMapperConfiguration additionalConfig = new SimpleFileMapperConfiguration();
        additionalConfig.setConfigurationFile("/net/freedom/gj/beans/txt/beanA-to-beanB-mapping2.txt");
        additionalConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
        additionalConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");

        //Simple factory, where no CDI capability available.
        MapperConfigurationBeanFactory factory = new MapperConfigurationBeanFactory();
        factory.add(fileConfig);
        factory.add(additionalConfig);
View Full Code Here

        fileConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
        fileConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");      

        //You can use multiple configuration files to map single complex object.
        //Optionally,using text custom format file.
        SimpleFileMapperConfiguration additionalConfig = new SimpleFileMapperConfiguration();
        additionalConfig.setConfigurationFile("/net/freedom/gj/beans/txt/beanA-to-beanB-mapping2.txt");
        additionalConfig.setSourceType("net.freedom.gj.beans.EntityBeanA");
        additionalConfig.setTargetType("net.freedom.gj.beans.EntityBeanB");

        //Simple factory, suitable where no CDI capability available.
        MapperConfigurationBeanFactory factory = new MapperConfigurationBeanFactory();
        factory.add(fileConfig);
        factory.add(additionalConfig);
View Full Code Here

TOP

Related Classes of net.freedom.gj.beans.config.SimpleFileMapperConfiguration

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.