File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,8 @@ public void PreFlush(IPersistentCollection collection)
298
298
/// has been initialized.
299
299
/// </summary>
300
300
/// <param name="collection">The initialized <see cref="AbstractPersistentCollection"/> that this Entry is for.</param>
301
+ //Since v5.1
302
+ [ Obsolete ( "Please use PostInitialize(collection, persistenceContext) instead." ) ]
301
303
public void PostInitialize ( IPersistentCollection collection )
302
304
{
303
305
snapshot = LoadedPersister . IsMutable ? collection . GetSnapshot ( LoadedPersister ) : null ;
@@ -312,7 +314,10 @@ public void PostInitialize(IPersistentCollection collection)
312
314
/// <param name="persistenceContext"></param>
313
315
public void PostInitialize ( IPersistentCollection collection , IPersistenceContext persistenceContext )
314
316
{
317
+ #pragma warning disable 618
318
+ //6.0 TODO: Inline PostInitialize here.
315
319
PostInitialize ( collection ) ;
320
+ #pragma warning restore 618
316
321
if ( LoadedPersister . GetBatchSize ( ) > 1 )
317
322
{
318
323
persistenceContext . BatchFetchQueue . RemoveBatchLoadableCollection ( this ) ;
You can’t perform that action at this time.
0 commit comments