Class TransactionBeginEvent

  • public class TransactionBeginEvent
    extends Object
    The event object send out when a transaction is started. To receive this event, create a class with a method which has this signature: public void onTransactionBegin(@Observes TransactionBeginEvent 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

      • TransactionBeginEvent

        public TransactionBeginEvent()
    • Method Detail

      • getTransaction

        public org.hibernate.Transaction getTransaction()
      • setTransaction

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