Examples of ChildWithBidirectionalManyToMany


Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    s.close();
    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    ChildWithBidirectionalManyToMany childWithManyToMany = null;
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    if ( !( parent.getChildren() instanceof PersistentSet ) ) {
      checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
      checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
    }
    if ( childWithManyToMany != null && !( childWithManyToMany.getParents() instanceof PersistentSet ) ) {
      checkResult( listeners, listeners.getPreCollectionUpdateListener(), childWithManyToMany, index++ );
      checkResult( listeners, listeners.getPostCollectionUpdateListener(), childWithManyToMany, index++ );
    }
    checkNumberOfResults( listeners, index );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) oldCollection ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, oldCollection, index++ );
    }
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionRemoveListener(), parent, oldCollection, index++ );
    checkResult( listeners, listeners.getPostCollectionRemoveListener(), parent, oldCollection, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) oldCollection ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, oldCollection, index++ );
    }
    if ( oldChild instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany oldChildWithManyToMany = ( ChildWithBidirectionalManyToMany ) oldChild;
      if ( ( ( PersistentCollection ) oldChildWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), oldChildWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionRemoveListener(), parent, oldCollection, index++ );
    checkResult( listeners, listeners.getPostCollectionRemoveListener(), parent, oldCollection, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents( ) ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
    checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
    checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    if ( oldChild instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany oldChildWithManyToMany = ( ChildWithBidirectionalManyToMany ) oldChild;
      if ( ( ( PersistentCollection ) oldChildWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), oldChildWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
    checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    s.close();
    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    ChildWithBidirectionalManyToMany childWithManyToMany = null;
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    if ( !( parent.getChildren() instanceof PersistentSet ) ) {
      checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
      checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
    }
    if ( childWithManyToMany != null && !( childWithManyToMany.getParents() instanceof PersistentSet ) ) {
      checkResult( listeners, listeners.getPreCollectionUpdateListener(), childWithManyToMany, index++ );
      checkResult( listeners, listeners.getPostCollectionUpdateListener(), childWithManyToMany, index++ );
    }
    checkNumberOfResults( listeners, index );
  }
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) oldCollection ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, oldCollection, index++ );
    }
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionRemoveListener(), parent, oldCollection, index++ );
    checkResult( listeners, listeners.getPostCollectionRemoveListener(), parent, oldCollection, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) oldCollection ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, oldCollection, index++ );
    }
    if ( oldChild instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany oldChildWithManyToMany = ( ChildWithBidirectionalManyToMany ) oldChild;
      if ( ( ( PersistentCollection ) oldChildWithManyToMany.getParents() ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), oldChildWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionRemoveListener(), parent, oldCollection, index++ );
    checkResult( listeners, listeners.getPostCollectionRemoveListener(), parent, oldCollection, index++ );
View Full Code Here

Examples of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

    int index = 0;
    if ( ( ( PersistentCollection ) parent.getChildren() ).wasInitialized() ) {
      checkResult( listeners, listeners.getInitializeCollectionListener(), parent, index++ );
    }
    if ( child instanceof ChildWithBidirectionalManyToMany ) {
      ChildWithBidirectionalManyToMany childWithManyToMany = ( ChildWithBidirectionalManyToMany ) child;
      if ( ( ( PersistentCollection ) childWithManyToMany.getParents( ) ).wasInitialized() ) {
        checkResult( listeners, listeners.getInitializeCollectionListener(), childWithManyToMany, index++ );
      }
    }
    checkResult( listeners, listeners.getPreCollectionUpdateListener(), parent, index++ );
    checkResult( listeners, listeners.getPostCollectionUpdateListener(), parent, index++ );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.