Skip to content

build instance of an class which reference another class #42

Description

@mashroomxl

in the lombok builder pattern, how to build instance of a target class which reference another class instance?

class  A {
    private String fieldA;
}

@Data
@Builder
class B {
    private String fieldB;
    private A a;
}
`

appreciate for any help~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions