Consider supporting immutable entity classes in mapper

Description

The assumption so far in and is that mapped entities will have mutable setters.

It would be nice to also have a strategy for immutable entities, for example invoking a constructor that has all the parameters.

This is kind of related to JAVA-2126, although this case should be common enough to not require overriding the whole mapping logic, so it would be nice to support it with less configuration.

Environment

None

Pull Requests

None

Activity

Show:
Olivier Michallat
August 20, 2020, 12:20 AM

This will be solved as part of JAVA-2816.

Duplicate

Assignee

Unassigned

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Sprint

Java 4.x

Priority

Major
Configure