If you are using Lombok, you can solve this by using @SuperBuilder as - @SuperBuilder @Getter @ToString public class UserDto extends BaseDto { private String name; private String lastName; private String username; private String password; private String profilePicturePath; } @Getter @SuperBuilder class BaseDto { private Long id; } @SuperBuilder . The way it works is by plugging into our build process and auto-generating Java bytecode into our .class files as per a number of project annotations we introduce in our code. Lombok @builder on a class that extends another class? This often doesn't bring any real value to the business side of our programs, and that's where Lombok comes in to make us more productive. Originally I passed this in through the constructor, but I can't do that now because @Builder.Default doesn't work with custom written constructors. Build. This book is a hands-on Beginner's Guide for developers who are new to Vaadin and/or Vaadin UI components. You will now notice that the Person fields are now accessible from Student builder. Lombok SuperBuilder Spring Autowire Issue With Child Class @SuperBuilder lets you automatically produce the code required to have your class be instantiable with . Project Lombok is a Java library which can generate some commonly used code and facilitate keeping source code clean, e.g. However, Lombok 1.18.4 added limited customisation possibilities of @SuperBuilder. ConfigurationKeys (Lombok)lombok noargsconstructor and @allargsconstructor together Annotating Fields with @Getter and @Setter. Override build and setter in Lombok's builderlombok constructor with some fields - Axton Publishing Group You are correct that this is only briefly described in the @SuperBuilder docs. Using auth tokens in .npmrc - NewbeDEV Lombok can easily generate the constructors, both no arguments and with fields. import lombok.Data; import lombok.experimental.SuperBuilder; import javax.annotation.Nullable; . In order to keep your objects immutable and be in the best compliance with Jackson use annotations: lombok.Value. Default value in lombok. How to init default with both constructor and ... Lombok @Builder using at Constructor level 3. How to use Lombok @Builder in abstract java class - @SuperBuilder ... Maven. @Builder - Project Lombok In general everything in the page should be divided and considered under three sections: DOM objects, CSS objects and JS objects. And MapStruct generates the implementation of the mapper.