What have been done:
- Fixed the issue where Specials have lots of null properties caused by the empty constructor used to avoid Lombok default mapping.
Problems encountered:
- It’s difficult to control which properties need to be constructed and how they behave using Lombok. Properties will become null if we don’t specify them in an constructor with @Builder annotation.
Solution:
- Write our own SpecialBuilder class, instead of using Lombok. Eg.
public class Special { public static class SpecialBuilder { private String description; ... } ... }