Package org.hibernate.envers.internal.synchronization.work

Examples of org.hibernate.envers.internal.synchronization.work.ModWorkUnit


    if ( getAuditConfiguration().getEntCfg().isVersioned( entityName ) ) {
      checkIfTransactionInProgress( event.getSession() );

      final AuditProcess auditProcess = getAuditConfiguration().getSyncManager().get( event.getSession() );
      final Object[] newDbState = postUpdateDBState( event );
      final AuditWorkUnit workUnit = new ModWorkUnit(
          event.getSession(),
          event.getPersister().getEntityName(),
          getAuditConfiguration(),
          event.getId(),
          event.getPersister(),
          newDbState,
          event.getOldState()
      );
      auditProcess.addWorkUnit( workUnit );

      if ( workUnit.containsWork() ) {
        generateBidirectionalCollectionChangeWorkUnits(
            auditProcess,
            event.getPersister(),
            entityName,
            newDbState,
View Full Code Here

TOP

Related Classes of org.hibernate.envers.internal.synchronization.work.ModWorkUnit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.