Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for lifecycle methods on type being build with builders #1454

Copy link
Copy link

Description

@filiphr
Issue body actions

Currently we only support lifecycle methods on for a single type.

This issue is to expand that so the lifecycles are invoked for the type being build.

Example. We have Person with PersonBuilder.

The following lifecycle methods are / should be invoked:

  • @BeforeMapping with no parameters
  • @BeforeMapping with @TargetType Person
  • @BeforeMapping with @TargetType PersonBuilder
  • @BeforeMapping with @MappingTarget PersonBuilder
  • @AfterMapping with no parameters
  • @AfterMapping with @TargetType Person
  • @AfterMapping with @TargetType PersonBuilder
  • @AfterMapping with @MappingTarget Person
  • @AfterMapping with @MappingTarget PersonBuilder
  • @AfterMapping with @MappingTarget PersonBuilder and returning Person
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.