GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — #674 Support Java 8 java.util.Optional type by ibogdanchikov · Pull Request #2874 · mapstruct/mapstruct Conversation
Contributor
Adds support for mapping between Asking the maintainers for a code review. Thank you for your time. This is my first time ever trying to contribute to an open source project, so I apologize in advance for anything I might have done wrong.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ibogdanchikov
force-pushed
the
support-java-optional
branch
2 times, most recently
from
9c4b87e to
95725b1
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
ibogdanchikov
force-pushed
the
support-java-optional
branch
from
95725b1 to
765de64
Compare
|
There was an error while loading. Please reload this page.
|
@filiphr Thank you very much for the examples, they were very helpful! I adjusted the implementation according to these examples. Specifically, I added the following condition to and changed if ( source.getFromOptionalProp().isPresent() ) { target.setFromOptionalProp( source.getFromOptionalProp().get() ); } Please let me know if this solution is acceptable. Thank you. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This looks better @ibogdanchikov. Thanks a lot. I'll get your branch and play around with it before merging it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi @filiphr, did you find something blocking the merge of this feature ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Unfortunately, I haven't had the time I want to look better into this one. Recently there was another PR (#3183) for this functionality. So I'll need to analyze both and see what works best for MapStruct |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I had some time to look into this and #3183. The approach which is taken in #3183 is more flexible and allows mapping between different types e.g. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Optional selectByEmail(String email) does not support constructor in spring boot myBatis query |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.