Giter VIP home page Giter VIP logo

Comments (14)

azizkhani avatar azizkhani commented on June 2, 2024 1

why dozer team dose not solve this bug?
I had to use xml instead of annotation because this bug dose not resolve yet?
please

from dozer.

buzdin avatar buzdin commented on June 2, 2024

Note for myself: check the status with deep mapping in annotations. Support more use-cases with annotations like @exclude.

from dozer.

rweng avatar rweng commented on June 2, 2024

+1

from dozer.

 avatar commented on June 2, 2024

+100 plz add this to next release

from dozer.

garethahealy avatar garethahealy commented on June 2, 2024

@azizkhani can you please provide more info. I don't understand your original comment.

from dozer.

 avatar commented on June 2, 2024

@garethahealy when map object using annotation ,type of property that create in proxy object is not integer

from dozer.

garethahealy avatar garethahealy commented on June 2, 2024

@azizkhani ; can you please create a github repo, with a unit test showing the behaviour / failure please. It will make it easier to investigate.

from dozer.

 avatar commented on June 2, 2024

@garethahealy i create project that show that bug https://github.com/azizkhani/dozer/tree/master/test

from dozer.

 avatar commented on June 2, 2024

@garethahealy did you check the bug?

from dozer.

 avatar commented on June 2, 2024

+100

from dozer.

garethahealy avatar garethahealy commented on June 2, 2024

After some quick debugging, it seems the below:

Is returning id as type Object, due to generics, which then cascades down to:

Which then causes the primitiveconverter, to convert to a string:

As a quick change (if its possible), changing to: BaseEntity< Integer > stops the error.

The root problem is due to Java generics type erasure, the code cant resolve the type.

We'd need to use something like classmate to get the correct type back, which isn't a small change.

https://github.com/FasterXML/java-classmate

from dozer.

garethahealy avatar garethahealy commented on June 2, 2024

CC @orange-buffalo @buzdin

from dozer.

azizkhani avatar azizkhani commented on June 2, 2024

+100

from dozer.

garethahealy avatar garethahealy commented on June 2, 2024

@azizkhani ; the "dozer team" is currently me. i am not paid by anyone to work on this project, i do it in my own spare time. why dont you help, and work on the issue? like i said in the comment. this is not a simple change.

from dozer.

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.