@Override public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) throws HibernateException { final CollectionEntry ce = new CollectionEntry( collection, persister, id, flushing ); ce.postInitialize( collection ); addCollection( collection, ce, id ); return ce; }
ce.postInitialize( lce.getCollection() );
persistenceContext.getCollectionEntry( collection ).postInitialize( collection );
@Override public CollectionEntry addInitializedCollection(PersistentCollectionDescriptor descriptor, PersistentCollection collection, Object id) throws HibernateException { final CollectionEntry ce = new CollectionEntry( collection, descriptor, id, flushing ); ce.postInitialize( collection ); addCollection( collection, ce, id ); return ce; }
/** * add a collection we just pulled out of the cache (does not need initializing) */ @Override public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) throws HibernateException { CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing); ce.postInitialize(collection); addCollection(collection, ce, id); return ce; }
/** * add a collection we just pulled out of the cache (does not need initializing) */ @Override public CollectionEntry addInitializedCollection(CollectionPersister persister, PersistentCollection collection, Serializable id) throws HibernateException { CollectionEntry ce = new CollectionEntry(collection, persister, id, flushing); ce.postInitialize(collection); addCollection(collection, ce, id); return ce; }
public void finishLoading(ExecutionContext executionContext) { collectionInstance.endRead(); final SharedSessionContractImplementor session = executionContext.getSession(); final PersistenceContext persistenceContext = session.getPersistenceContext(); CollectionEntry collectionEntry = persistenceContext.getCollectionEntry( collectionInstance ); if ( collectionEntry == null ) { collectionEntry = persistenceContext.addInitializedCollection( getCollectionDescriptor(), getCollectionInstance(), getKey() ); } else { collectionEntry.postInitialize( collectionInstance ); } // todo (6.0) : there is other logic still needing to be implemented here. caching, etc // see org.hibernate.engine.loading.internal.CollectionLoadContext#endLoadingCollection in 5.x } }
persistenceContext.getCollectionEntry(collection).postInitialize(collection);
persistenceContext.getCollectionEntry(collection).postInitialize(collection);
persistenceContext.getCollectionEntry( collection ).postInitialize( collection );
ce.postInitialize( lce.getCollection() );
ce.postInitialize( lce.getCollection() );