spring-practices-demo
spring-practices-demo copied to clipboard
Bump org.mapstruct:mapstruct-processor from 1.6.0 to 1.6.2
Bumps org.mapstruct:mapstruct-processor from 1.6.0 to 1.6.2.
Release notes
Sourced from org.mapstruct:mapstruct-processor's releases.
1.6.2
Bugs
- Regression from 1.6.1: ClassCastException when using records (#3717)
1.6.1
Enhancements
- Use Java
LinkedHashSetandLinkedHashMapnew factory method with known capacity when on Java 19 or later (#3113)Bugs
- Inverse Inheritance Strategy not working for ignored mappings only with target (#3652)
- Inconsistent ambiguous mapping method error when using
SubclassMapping: generic vs raw types (#3668)- Fix regression when using
InheritInverseConfigurationwith nested target properties and reversingtarget = "."(#3670)- Deep mapping with multiple mappings broken in 1.6.0 (#3667)
- Two different constants are ignored in 1.6.0 (#3673)
- Inconsistent ambiguous mapping method error: generic vs raw types in 1.6.0 (#3668)
- Fix cross module records with interfaces not recognizing accessors (#3661)
@AfterMappingmethods are called twice when using target with builder (#3678)- Compile error when using
@AfterMappingmethod with Builder and TargetObject (#3703)Behaviour change
Inverse Inheritance Strategy not working for ignored mappings only with target
Prior to this fix
@Mapping(target = "myProperty", ignore = true)was being ignored when using@InheritInverseConfiguration.e.g.
@Mapper public interface ModelMapper {@Mapping(target = "creationDate", ignore = true) Entity toEntity(Model model);@InheritInverseConfiguration Model toModel(Entity entity);
}
In the example above prior 1.6.1 the
Model toModel(Entity entity)was going to map theidproperty. In order to keep that behavior you'll need to explicitly do the mapping for it.@Mapper public interface ModelMappe { @Mapping(target = "creationDate", ignore = true) // NOTE: Handled by JPA. Entity toEntity(Model model);</tr></table>
... (truncated)
Commits
212607bReleasing version 1.6.24fd22d6Prepare release notes for 1.6.2a3b4139#3717 Fix ClassCastException when getting thrown types for a record accessorc74e62aNext version 1.7.0-SNAPSHOT10d6987Releasing version 1.6.1c36f9aePrepare release notes for 1.6.13011dd7#3678 before / after mapping for type using builder should only be kept if th...4c1df35#3703 Use include model instead of manually writing the type name for return ...2686e85#3661 Use correct type for the Record component read accessors12c9c6cUse email variable for GitHub Bot git email- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)