Package org.hibernate.collection.spi

Examples of org.hibernate.collection.spi.PersistentCollection.wasInitialized()


        return;
      }
      PersistentCollection persistentCollection = event.getCollection();
      final String collectionRole;
      if ( persistentCollection != null ) {
        if ( !persistentCollection.wasInitialized() ) {
          // non-initialized collections will still trigger events, but we want to skip them
          // as they won't contain new values affecting the index state
          return;
        }
        collectionRole = persistentCollection.getRole();
View Full Code Here


          // though we clear the queue on flush, it seems like a good idea to guard
          // against potentially null loadedKeys (which leads to various NPEs as demonstrated in HHH-7821).
          continue;
        }

        if ( collection.wasInitialized() ) {
          // should never happen
          LOG.warn( "Encountered initialized collection in BatchFetchQueue, this should not happen." );
          continue;
        }
View Full Code Here

        return;
      }
      PersistentCollection persistentCollection = event.getCollection();
      final String collectionRole;
      if ( persistentCollection != null ) {
        if ( ! persistentCollection.wasInitialized() ) {
          // non-initialized collections will still trigger events, but we want to skip them
          // as they won't contain new values affecting the index state
          return;
        }
        collectionRole = persistentCollection.getRole();
View Full Code Here

        throws IOException, JsonProcessingException
    {
        if (value instanceof PersistentCollection) {
            PersistentCollection coll = (PersistentCollection) value;
            // If lazy-loaded, not yet loaded, may serialize as null?
            if (!_forceLazyLoading && !coll.wasInitialized()) {
                provider.defaultSerializeNull(jgen);
                return;
            }
            value = coll.getValue();
            if (value == null) {
View Full Code Here

            TypeSerializer typeSer)
        throws IOException, JsonProcessingException
    {
        if (value instanceof PersistentCollection) {
            PersistentCollection coll = (PersistentCollection) value;
            if (!_forceLazyLoading && !coll.wasInitialized()) {
                provider.defaultSerializeNull(jgen);
                return;
            }
            value = coll.getValue();
            if (value == null) {
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.