8000 reactive lifecycle callback · Issue #1413 · hibernate/hibernate-reactive · GitHub
[go: up one dir, main page]

Skip to content
reactive lifecycle callback #1413
Open
Open
@gavinking

Description

@gavinking

It looks like would be relatively straightforward to add support for having the @PrePersist callback and friends return a Uni. To be clear, we would not be able to reuse the code from core, but there's anyway not much of it. We would just implement something from scratch.

The basic idea is to let you write:

@PrePersist
Uni<Void> myCallback() {
     return ..... ;
}

on your entity class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0