GithubHelp home page GithubHelp logo

automapper's Introduction

Hi ๐Ÿ‘‹, I'm Tammo

  • ๐Ÿ”Ž Interested in JVM technologies
  • ๐ŸŽ“ I studied computer science at the University of Bremen

automapper's People

Contributors

tammo0987 avatar

Stargazers

 avatar

Watchers

 avatar

automapper's Issues

Setup Project

A sbt project should be setup with a first project structure.

Add default mappers

Some default mappers should be created. So that the following types could be mapped automatically:

  • Iterable[F] => Iterable[T] (Collections and Maps)
  • Option[F] => Option[T] (probably the same as number one)
  • Either[L1, R1] => Either[L2, R2]

This issue needs more preparation.

Add support for value classes

Support for (un-)wrapping value classes should be added. If the types of two fields equals a value class and the inner type, this should be automatically mapped. These feature should be also configurable.

Add support for default values

Default values from constructors should be also used, if the value is not provided otherwise. This feature should be configurable.

Deep Mapper generation

Mappers should be generated also for inner adts, if possible. This feature should be also configurable.

Create API for Mapper derivation

The Mapper trait should be created. It should be able to this:

  • map function
  • creation of identity mapper
  • composition of mappers

Also the syntax/dsl for deriving such mappers should be created.

Add derivation of sums

It should be possible, to map variants from a sum to variants from another sum by name. This mapper should be able to derive automatically. Sealed traits as well as enums should be supported.

Add transformations for mapper

Manual transformations for the mappers should be created. The following should be implemented:

  1. Map fields with different name to each other
  2. Add constant for field
  3. Compute value for field based on source product

Transformation should have a higher priority than automatic derivation. Also always the latest defined transformation (if defined) should be used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.