hibernate/hibernate-orm — pull request #337 by pb00068 (2012-05-14 13:17:18+00:00)
Title: HHH-1775 

Tried to implement collection batch fetching as Steve proposed in HHH-1775.
Very similiar to how entity batches are handled,
now also "batch loadable collections" get tracked seperately on the BatchFetchQueue.
The problem with "peeking" into the second level cache is mitigated inasmuch
as collections get removed from batchFetchQueue as soon they are initializated from share cache
(CollectionEntry#postInitialize).
Furthermore pull-request includes some minor optimization also for entityBatches.
The pull-request passed succesfully all hibernate matrix-tests (including BatchedManyToManyTest)