New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Mapping("user.id") problem #30
Comments
Note for myself: check the status with deep mapping in annotations. Support more use-cases with annotations like @exclude. |
+1 |
+100 plz add this to next release |
@azizkhani can you please provide more info. I don't understand your original comment. |
@garethahealy when map object using annotation ,type of property that create in proxy object is not integer |
@azizkhani ; can you please create a github repo, with a unit test showing the behaviour / failure please. It will make it easier to investigate. |
@garethahealy i create project that show that bug https://github.com/azizkhani/dozer/tree/master/test |
@garethahealy did you check the bug? |
+100 |
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. |
+100 |
why dozer team dose not solve this bug? |
@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. |
I using Dozer in my project with xml mapping but i want to used annotation and remove xml file
this example show bug in annotation mapping
after mapping to destination bean ,type of variable is changed from Integer to String
for example
I think one of the dozer disadvantage is in annotation
annotation is very simple and changeable
The text was updated successfully, but these errors were encountered: