Object processCollection(Object collection, CollectionType type) throws HibernateException { if (collection==CollectionType.UNFETCHED_COLLECTION) { return null; } if (collection!=null) { final PersistentCollection coll; if ( type.hasHolder() ) { coll = getSession().getPersistenceContext().getCollectionHolder(collection); } else if ( collection == LazyPropertyInitializer.UNFETCHED_PROPERTY ) { coll = (PersistentCollection) type.resolve( collection, getSession(), owner ); } else { coll = (PersistentCollection) collection; } Collections.processReachableCollection( coll, type, owner, getSession() ); } return null; }
Object processCollection(Object collection, CollectionType type) throws HibernateException { if (collection==CollectionType.UNFETCHED_COLLECTION) { return null; } if (collection!=null) { final PersistentCollection coll; if ( type.hasHolder() ) { coll = getSession().getPersistenceContext().getCollectionHolder(collection); } else { coll = (PersistentCollection) collection; } Collections.processReachableCollection( coll, type, owner, getSession() ); } return null; }
Object processCollection(Object collection, CollectionType type) throws HibernateException { if (collection==CollectionType.UNFETCHED_COLLECTION) { return null; } if (collection!=null) { final PersistentCollection coll; if ( type.hasHolder() ) { coll = getSession().getPersistenceContext().getCollectionHolder(collection); } else { coll = (PersistentCollection) collection; } Collections.processReachableCollection( coll, type, owner, getSession() ); } return null; }
@Override Object processCollection(Object collection, PluralPersistentAttribute collectionAttribute) throws HibernateException { if ( collection == PersistentCollectionDescriptor.UNFETCHED_COLLECTION ) { return null; } if (collection!=null) { final PersistentCollection coll; if ( collectionAttribute.getPersistentCollectionDescriptor().getCollectionClassification() == CollectionClassification.ARRAY ) { coll = getSession().getPersistenceContext().getCollectionHolder(collection); } else if ( collection == LazyPropertyInitializer.UNFETCHED_PROPERTY ) { throw new NotYetImplementedFor6Exception( "processCollection + LazyPropertyInitializer.UNFETCHED_PROPERTY" ); } else { coll = (PersistentCollection) collection; } Collections.processReachableCollection( coll, collectionAttribute, owner, getSession() ); } return null; }