Java Code Examples for org.dozer.DozerBeanMapper#map()
The following examples show how to use
org.dozer.DozerBeanMapper#map() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RoutingMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static RoutingType mapRoutingType(Routing input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-routing.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (RoutingType)mapper.map(input, RoutingType.class); }
Example 2
Source File: BenchmarkTest.java From easy-mapper with Apache License 2.0 | 5 votes |
public Profiler testDozer(int invokeNum, String frameworkName) { DozerBeanMapper mapper = new DozerBeanMapper(); long start = System.currentTimeMillis(); for (int i = 0; i < invokeNum; i++) { Person7 p = getPerson(); PersonDto dto = mapper.map(p, PersonDto.class); //System.out.println(dto); } return Profiler.apply(System.currentTimeMillis(), start) .setFrameworkName(frameworkName); }
Example 3
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genasync-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInput destObject = new CommonInput(); mapper.map(input, destObject); return destObject; }
Example 4
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genins-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInputType destObject = new CommonInputType(); mapper.map(input, destObject); return destObject; }
Example 5
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInputType(CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (CommonInputType)mapper.map(input, CommonInputType.class); }
Example 6
Source File: RoutingMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static RoutingType mapRoutingType(Routing input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-routing.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (RoutingType)mapper.map(input, RoutingType.class); }
Example 7
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genasync-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInput destObject = new CommonInput(); mapper.map(input, destObject); return destObject; }
Example 8
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genins-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInputType destObject = new CommonInputType(); mapper.map(input, destObject); return destObject; }
Example 9
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInputType(CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (CommonInputType)mapper.map(input, CommonInputType.class); }
Example 10
Source File: RoutingMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static RoutingType mapRoutingType(Routing input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-routing.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (RoutingType)mapper.map(input, RoutingType.class); }
Example 11
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genasync-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInput destObject = new CommonInput(); mapper.map(input, destObject); return destObject; }
Example 12
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genins-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInputType destObject = new CommonInputType(); mapper.map(input, destObject); return destObject; }
Example 13
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInputType(CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (CommonInputType)mapper.map(input, CommonInputType.class); }
Example 14
Source File: RoutingMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static RoutingType mapRoutingType(Routing input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-routing.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (RoutingType)mapper.map(input, RoutingType.class); }
Example 15
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genasync-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInput destObject = new CommonInput(); mapper.map(input, destObject); return destObject; }
Example 16
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/genins-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); CommonInputType destObject = new CommonInputType(); mapper.map(input, destObject); return destObject; }
Example 17
Source File: CommonInputMapper.java From freehealth-connector with GNU Affero General Public License v3.0 | 5 votes |
public static CommonInputType mapCommonInputType(CommonInput input) { List<String> myMappingFiles = new ArrayList(); myMappingFiles.add("dozer/dmg-commoninput.xml"); DozerBeanMapper mapper = new DozerBeanMapper(); mapper.setMappingFiles(myMappingFiles); return (CommonInputType)mapper.map(input, CommonInputType.class); }