Add @JsonProperty to is*-prefixed boolean DTO fields

FixBillingService
Shipped
28 Aprili 2026, 21:57 UTC
Author
Kamo
Commit
e8325de

Lombok generates isXxx() is-getters for boolean fields named isXxx. Jackson strips the leading 'is' from is-getters and serializes them as 'xxx' rather than 'isXxx', so isAccountManager became 'accountManager' in JSON, isLicensee became 'licensee', isOrgOwner became 'orgOwner' — all mismatching the frontend's expected field names. The toggles appeared permanently unchecked because the frontend read undefined instead of the actual boolean value. Added @JsonProperty to force the correct key names on isAccountManager, isOrgOwner, and isLicensee in both response DTOs and the Add* request classes. The Update* request classes already used Boolean (nullable) and were unaffected.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei