Use param names for constructor auto-mapping
See original GitHub issueI want MyBatis to map automatically with the constructor by argument names without defining <constructor>
… </constructor>
or @ConstructorArgs
.
I am using kotlin’s data class, I want mybatis to be automatically mapped, just like I did through the empty constructor and getter setter in java.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Automapper - how to map to constructor parameters instead of ...
In cases where my destination setters are private, I might want to map to the object using the destination object's constructor ...
Read more >Construction - AutoMapper documentation
AutoMapper can map to destination constructors based on source members: ... If the destination constructor parameter names don't match, you can modify them ......
Read more >Passing Parameters with Automapper - Code Buckets
What I want to do is pass information from the customer into the address mappings. I'm going to use parameters for that. The...
Read more >Reflection and C# optional constructor arguments
(AutoMapper allows constructors to be used for creating new instances, using the "ConvertUsing" method, but it doesn't do its magic with ...
Read more >AutoMapper.xml 3.3.1 - PowerShell Gallery
Use this for child/nested containers </summary> <param name="constructor"></param> </member> <member name="P:AutoMapper.IMappingOperationOptions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#2196 is merged. I would appreciate if you test the feature using the latest 3.5.10-SNAPSHOT.
Just to reiterate, when there is no matching column in the result set, an exception is thrown.
Thank you all for your contributions!
I only have a vague plan at this point, but yes, it should work.