Java Lombok: Omitting one field in @AllArgsConstructor?

No that is not possible. There is a feature request to create a @SomeArgsConstructor where you can specify a list of involved fields.

Full disclosure: I am one of the core Project Lombok developers.

Leave a Comment