Interface BeforeDetachEntityListener<T>

All Known Implementing Classes:
CarDetachListener, EntityLogItemDetachListener, JsonEmailTemplateDetachListener, ReportDetachListener

public interface BeforeDetachEntityListener<T>
Defines the contract for handling entities right before they are detached from an EntityManager on transaction commit.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBeforeDetach(T entity)
    Executes before the object is detached from an EntityManager on transaction commit.
  • Method Details

    • onBeforeDetach

      void onBeforeDetach(T entity)
      Executes before the object is detached from an EntityManager on transaction commit.
      Parameters:
      entity - entity instance in managed state