Package org.hibernate.test.event.collection.association.bidirectional.manytomany

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


    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

TOP

Related Classes of org.hibernate.test.event.collection.association.bidirectional.manytomany.ChildWithBidirectionalManyToMany

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.