Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 24, 2025

This PR contains the following updates:

Package Change Age Confidence
org.mapstruct:mapstruct (source) 1.5.5.Final -> 1.6.3 age confidence
org.mapstruct:mapstruct-jdk8 (source) 1.3.0.Final -> 1.6.3 age confidence
org.mapstruct:mapstruct-processor (source) 1.3.0.Final -> 1.6.3 age confidence

Release Notes

mapstruct/mapstruct (org.mapstruct:mapstruct)

v1.6.3

Compare Source

Bugs
  • Redundant if condition in Java record mapping with RETURN_DEFAULT strategy (#​3747)
  • Stackoverflow with Immutables custom builder (#​3370)
  • Unused import of java.time.LocalDate when mapping source LocalDateTime to target LocalDate (#​3732)
Documentation
  • Add section to README.md comparing mapstruct with Java Records (#​3751)

v1.6.2

Compare Source

Bugs
  • Regression from 1.6.1: ClassCastException when using records (#​3717)

v1.6.1

Compare Source

Enhancements
  • Use Java LinkedHashSet and LinkedHashMap new 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 InheritInverseConfiguration with nested target properties and reversing target = "." (#​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)
  • @AfterMapping methods are called twice when using target with builder (#​3678)
  • Compile error when using @AfterMapping method 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 the id property. 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);    

    @​InheritInverseConfiguration
    @​Mapping(target = "creationDate", source = "creationDate") // Allow reading from Entity
    Model toModel(Entity entity);
}

v1.6.0

Compare Source

Previous Release Notes

Configuration

📅 Schedule: Branch creation - "after 8am and before 2pm every weekday" in timezone Europe/London, Automerge - "after 8am and before 2pm every weekday" in timezone Europe/London.

🚦 Automerge: Disabled because a matching PR was automerged previously.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 24, 2025
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from b5ffa68 to 23bc940 Compare July 8, 2025 15:30
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from 23bc940 to ebd2ff6 Compare August 3, 2025 04:22
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from ebd2ff6 to 2227881 Compare August 10, 2025 15:54
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from 2227881 to a7f7bcc Compare September 8, 2025 08:11
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from a7f7bcc to a97e95e Compare September 22, 2025 11:30
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from a97e95e to 36d8541 Compare October 9, 2025 09:48
@renovate renovate bot force-pushed the renovate/mapstruct-monorepo branch from 36d8541 to b905c03 Compare October 21, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants