Reputation: 331
Is there any support for fluent getters in MapStruct? It seems that inspection of methods is done by method name. And so with fluent getters that have no prefix, everyone method could seem like a getter.
Has anyone tackled this problem?
Upvotes: 3
Views: 1115
Reputation: 21403
MapStruct does not support fluent getters. The reason for that is that fluent getters means every single method without parameters that returns non void type.
However, if you have some kind of annotation or some kind of rule that you can enforce for fluent getters then you can have a look at the AccessorNamingStrategy
and provide your own implementation.
Upvotes: 3