Class TransactionCompletedEvent

  • public class TransactionCompletedEvent
    extends Object
    The event object send out when a transaction has been completed. To receive this event, create a class with a method which has this signature: public void onTransactionComplete(@Observes TransactionCompletedEvent event) { Note, the method name is unimportant, the @Observes EntityNewEvent specifies that this method will be called before persisting a new instance.
    See Also:
    • Constructor Detail

      • TransactionCompletedEvent

        public TransactionCompletedEvent()
    • Method Detail

      • getTransaction

        public org.hibernate.Transaction getTransaction()
      • setTransaction

        public void setTransaction​(org.hibernate.Transaction transaction)