Giter Site home page Giter Site logo

Comments (5)

elaatifi avatar elaatifi commented on August 18, 2024

ZonedDateTime can not be cloned by Orika due the lack of constructor...
Usually for this "immutable" value object the best thing to do is to copy by reference (by registering CopyByReferenceConverter with ZonedDateTime.class as argument) but you can also use a custom converter to if the type does not match.

from orika.

lbehnke avatar lbehnke commented on August 18, 2024

I would be great if these immutable objects (LocalDateTime, ZonedDateTime, ...) were automatically recognized as such and just passed through during the mapping, as they are part of the JDK. I do not see any reason why application developers must deal with the problem.

from orika.

elaatifi avatar elaatifi commented on August 18, 2024

We can verify in the runtime the existence of these classes (Class.forName) before registering the CopyByReferenceConverter

from orika.

brabenetz avatar brabenetz commented on August 18, 2024

Duplicate with #170

from orika.

ndr-brt avatar ndr-brt commented on August 18, 2024

Fixed by #178

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.