Java 类org.hibernate.event.spi.PostCollectionRecreateEvent 实例源码

项目:lams    文件:CollectionRecreateAction.java   
private void postRecreate() {
    final EventListenerGroup<PostCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.POST_COLLECTION_RECREATE );
    if ( listenerGroup.isEmpty() ) {
        return;
    }
    final PostCollectionRecreateEvent event = new PostCollectionRecreateEvent( getPersister(), getCollection(), eventSource() );
    for ( PostCollectionRecreateEventListener listener : listenerGroup.listeners() ) {
        listener.onPostRecreateCollection( event );
    }
}
项目:cibet    文件:CibetPostCollectionRecreateEventListener.java   
@Override
public void onPostRecreateCollection(PostCollectionRecreateEvent event) {
   String entityName = event.getAffectedOwnerEntityName();
   if (!Context.internalRequestScope().isAuditedByEnvers()) {
      log.debug(entityName + " owner entity NOT audited by Cibet configuration");
      return;
   } else {
      log.debug(entityName + " owner entity audited by Cibet configuration");
   }
   super.onPostRecreateCollection(event);
}
项目:Hibernate-Search-GenericJPA    文件:HibernateUpdateSource.java   
@Override
public void onPostRecreateCollection(PostCollectionRecreateEvent event) {
    processCollectionEvent( event );
}