-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support merging with mapper annotation #11330
base: 4.8.x
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, can you update the docs here as well https://docs.micronaut.io/4.6.5/guide/#beanMappers
int i = builder.indexOf(key); | ||
if (!isDefault && mapStrategy.customMappers().containsKey(key)) { | ||
return; | ||
private class DefaultMapInvocation implements MapInvocation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be a record
?
context/src/main/java/io/micronaut/runtime/beans/MapperIntroduction.java
Show resolved
Hide resolved
context/src/main/java/io/micronaut/runtime/beans/MapperIntroduction.java
Show resolved
Hide resolved
context/src/main/java/io/micronaut/runtime/beans/MapperIntroduction.java
Show resolved
Hide resolved
context/src/main/java/io/micronaut/runtime/beans/MapperIntroduction.java
Show resolved
Hide resolved
context/src/main/java/io/micronaut/runtime/beans/MapperIntroduction.java
Show resolved
Hide resolved
core-processor/src/main/java/io/micronaut/inject/beans/visitor/MapperVisitor.java
Show resolved
Hide resolved
core-processor/src/main/java/io/micronaut/inject/beans/visitor/MapperVisitor.java
Show resolved
Hide resolved
not sure if this can make it in 4.7 or not. @sdelamo will know |
I will prefer 4.8. I want to deliver 4.7 as soon as possible. |
4.8 is fine with me. There is no need to rush this change |
@andriy-dmytruk can you retarget 4.8.x |
Support merging with
@Mapper
annotation.For example, the following method definitions are supported: