Immutable constructor

41 views
Skip to first unread message

Alexey Zverev

unread,
Jul 19, 2020, 6:54:23 AM7/19/20
to mapstruct-users
Hello evryone! I try to use mapStract for mapping an immutable object. But mapStrac doesn`t work with parameters in constructor. Will it be possible in future?

Stanislav Spiridonov

unread,
Jul 19, 2020, 9:56:44 AM7/19/20
to mapstruct-users
Hi,

The latest release (1.3.1) supports immutable objects only with builders. Support for constructors was added only in 1.4.0.Beta1 (https://mapstruct.org/news/2020-06-01-mapstruct-1_4_0_Beta1-is-out-with-constructor-support/)

Best,
Stas
Reply all
Reply to author
Forward
0 new messages