📓
Object-Mappers-Docs
  • Introduction
  • contributing
    • Contributing
  • links
    • Resources
  • reporting
    • Bug Report
    • Custom Report
    • Feature Request Template
    • General Information
    • Issue Report
    • Pull Request Template
  • user-guide
    • Changelog
    • Code of Conduct
    • Code Owners
    • Dependency Management
    • FAQ
    • Getting Started
    • Repositories: How to move content from one repository to another one
    • Troubleshooting
    • Upgrading
  • modules
    • beancp
      • BeanCP Tutorial
    • beanmapper
      • BeanMapper Tutorial
    • beanutils
      • BeanUtils Tutorial
    • bull
      • Bull Tutorial
    • converter
      • Converter Tutorial
    • datus
      • Datus Tutorial
    • doov
      • Doov Tutorial
    • dozer
      • Dozer Tutorial
    • jmapper
      • JMapper Tutorial
    • mapstruct
      • MapStruct Tutorial
    • modelmapper
      • ModelMapper Tutorial
    • moo
      • Moo Tutorial
    • nomin
      • Nomin Tutorial
    • orika
      • Orika Tutorial
    • remap
      • ReMap Tutorial
    • selma
      • Selma Tutorial
    • smooks
      • Smooks Tutorial
Powered by GitBook
On this page
  • Description
  • Features
  • Pros & Cons
  • Pros
  • _Cons
  • Use cases
  • Links

Was this helpful?

  1. modules
  2. selma

Selma Tutorial

PreviousselmaNextsmooks

Last updated 3 years ago

Was this helpful?

Description

The main idea is to prohibit magic conversion and just automate all mappings without any side effects. When mapping appears to be too complex, the developer should handle it by himself using custom mappings/interceptors. The footprint of Selma should be as small as possible as we only depend on a JavaWriter and the JDK. Selma tries to only use static compiled generated code without any reflection at runtime or pseudo-code written in string fields. You can use composition to build a chain of mappers and inside a single mapper you can have global configuration that can be overwritten on a per method basis. Annotation-based approach (APT) is used to generate end-to-end object mappings.

Features

Pros & Cons

Pros

  • object mappings generated at compile time

  • user-friendly approach backed by annotations simplifies the notation of object property mappings

  • mappers compositions with configurations provide possibility to reuse already defined object matchings (new method does not have to be provided for each mapping)

_Cons

Use cases

Links

Official Site
Official Repository
Java Selma Alternatives
image info
image info
image info
image info
image info
image info
image info