GithubHelp home page GithubHelp logo

Bypass mapping for empty string value and Trim the source string value during source to destination filed mapping about orika HOT 4 OPEN

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Bypass mapping for empty string value and Trim the source string value during source to destination filed mapping

from orika.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Hello,

Actually you can use Filter API to this kind of things
: skip or transforming the value before the copy; as long as the value keeps 
it's type if not you should also try to use a Converter

Original comment by [email protected] on 25 Feb 2015 at 9:00

from orika.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Thanks for Quick reply.

It will be great help if you send me some sample implementation of Filter API.

Original comment by [email protected] on 26 Feb 2015 at 7:58

from orika.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
You can look at 
https://github.com/orika-mapper/orika/blob/master/tests/src/main/java/ma/glasnos
t/orika/test/filters/FilterTestCase.java

and this documentation:
http://orika-mapper.github.io/orika-docs/filters.html

Original comment by [email protected] on 26 Feb 2015 at 9:29

from orika.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 13, 2024
Thanks a lot for your help.

Original comment by [email protected] on 26 Feb 2015 at 1:52

from orika.

Related Issues (20)

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.