JMapper Framework alternatives and similar libraries
Based on the "Bean Mapping" category.
Alternatively, view JMapper Framework alternatives based on common mentions on social networks and blogs.
-
Dozer
Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another. -
Beanmapper
Library for converting from one Java class to a dissimilar Java class with similar names based on the Bean convention
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of JMapper Framework or a related project?
README
JMapper Framework
Fast as hand-written code with zero compromise.
Artifact information
updated GroupId Name ``io.github.someshwar1
Status
Write the configuration using what you prefer: Annotation, XML or API.
Most relevant features:
- One to Many and Many to One relationship
- dynamic conversions, whose body adapts to every relationship
- inherited configurations, you can split the configuration along the hierarchy
- and more..
especially its use is intuitive
Configuration
Below it is shown the same configuration in the three types allowed
Annotation
class Destination{ class Source{
@JMap
private String id; private String id;
@JMap("sourceField")
private String destinationField; private String sourceField;
private String other; private String other;
// getters and setters... // getters and setters...
} }
XML
<jmapper>
<class name="it.jmapper.bean.Destination">
<attribute name="id">
<value name="id"/>
</attribute>
<attribute name="destinationField">
<value name="sourceField">
</attribute>
</class>
</jmapper>
API
JMapperAPI jmapperAPI = new JMapperAPI()
.add(mappedClass(Destination.class)
.add(attribute("id")
.value("id"))
.add(attribute("destinationField")
.value("sourceField")));
Creation
JMapper<Destination, Source> mapper;
Annotation
mapper = new JMapper<>(Destination.class, Source.class);
XML
mapper = new JMapper<>(Destination.class, Source.class, xml);
API
mapper = new JMapper<>(Destination.class, Source.class, jmapperAPI);
Usage
Source source = new Source("id", "sourceField", "other");
Destination destination = mapper.getDestination(source);
Result
destination ["id", "sourceField", null]
With JMapper we have all the advantages of dynamic mapping with the performance of static code, with 0 memory consumption. Required java 8+
Would you like to contribute to the development of JMapper? contact us ([email protected]) for more information.
Follow us on twitter