Java Bean Conversion Tool

Source: Internet
Author: User

Factors to consider:
1. A simple convention is better than the configuration of the same Name property copy
2. Nested Properties Copy
3.flattern (flat) support, to support the N-layer structure of the copy to a layer of structure.
4. Performance

Here's a page that mentions a lot of tools.
Http://stackoverflow.com/questions/1432764/any-tool-for-java-object-to-object-mapping
Note that many tools use static Java bytecode generation, which is not as good as hardcode performance.

Id Describe Whether to support Flattern Latest Version Url
Transmorph Just different types of mutual transfer, and demand is not far away N 3.1.3 Https://github.com/cchabanois/transmorph
Commons-lang Arrayutils is also just a cross between different types of N 3.1 Http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/ArrayUtils.html
Commons-convert It's just a cross between different types, now in Apache's sandbox. N 1.0-snapshot Http://commons.apache.org/sandbox/commons-convert
Spring Framework Propertyeditors is also just a cross between different types of N
Ezmorph Property with the same name as the same type bulk copy N 1.0.6 http://sourceforge.net/projects/ezmorph/
Commons-beanutils Beanutils properties with the same name can only be used to copy nested properties with similar ognl expressions, but the performance of this thing is not good to be copy,propertyutils Y 1.8.3 http://commons.apache.org/proper/commons-beanutils/
Morph No documents found 1.1.1 http://sourceforge.net/projects/morph/
Lorentz Seems to be dead.
Otom "Autumn" didn't find the document. Https://java.net/projects/otom
Smooks No documents found, seemingly can be a variety of formats such as Csv,java BEAN,JMS message, not our demand scenario Https://github.com/smooks/smooks Http://www.infoq.com/cn/articles/event-streaming-with-smooks
Jmapper Support for annotaion description mappings N 1.2 http://code.google.com/p/jmapper-framework/
Cglib Beancopier, Bulkbean,beanmap,fastclass/fastmethod uses the method of generating bytecode, the performance is quite high N 2.3 Sourceforge.net/projects/cglib
Ognl OGNL expressions are definitely powerful Y 4.0-snapshot http://commons.apache.org/proper/commons-ognl/
Mapping4java Country man-made wheels, good performance N 1.0 http://code.google.com/p/mapping4java/
Dozer Seemingly powerful, XML to configure mappings, but performance is not Y 5.4 Https://github.com/DozerMapper/dozer
Orika A rookie, better performance than Dozer, can try, but did not find the method with XML Y 1.4.2 Http://orika-mapper.github.io/orika-docs/index.html
Modelmapper Automatic mapping in a way that conventions are better than configurations Y 0.5.6 http://modelmapper.org

Java Bean Conversion Tool

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.