Commits

Roger Kratz  committed 971e925

removed indexcomponentdata from icollectionmapperfactory.idbag/idbag<T>

  • Participants
  • Parent commits f117181

Comments (0)

Files changed (4)

File Src/NHibernate.Envers/Configuration/Metadata/CollectionMetadataGenerator.cs

 				{
 					var methodInfo = ReflectHelper.GetGenericMethodFrom<ICollectionMapperFactory>("IdBag",
 						type.ReturnedClass.GetGenericArguments(),
-						new[] { typeof(IEnversProxyFactory), typeof(CommonCollectionMapperData), typeof(MiddleComponentData), typeof(MiddleComponentData) });
+						new[] { typeof(IEnversProxyFactory), typeof(CommonCollectionMapperData), typeof(MiddleComponentData) });
 					collectionMapper = (IPropertyMapper)methodInfo.Invoke(collectionProxyMapperFactory,
-						new object[] { _mainGenerator.GlobalCfg.EnversProxyFactory, commonCollectionMapperData, elementComponentData, indexComponentData });
+						new object[] { _mainGenerator.GlobalCfg.EnversProxyFactory, commonCollectionMapperData, elementComponentData });
 				}
 				else
 				{
-					collectionMapper = collectionProxyMapperFactory.IdBag(_mainGenerator.GlobalCfg.EnversProxyFactory, commonCollectionMapperData, elementComponentData, indexComponentData);
+					collectionMapper = collectionProxyMapperFactory.IdBag(_mainGenerator.GlobalCfg.EnversProxyFactory, commonCollectionMapperData, elementComponentData);
 				}
 			}
 			else

File Src/NHibernate.Envers/Configuration/Metadata/DefaultCollectionMapperFactory.cs

 			throw new NotImplementedException("Array is not supported by DefaultCollectionMapperFactory");
 		}
 
-		public virtual IPropertyMapper IdBag<T>(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData)
+		public virtual IPropertyMapper IdBag<T>(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData)
 		{
 			return new IdBagCollectionMapper<T>(enversProxyFactory, commonCollectionMapperData, typeof(IList<T>), elementComponentData);
 		}
 
-		public virtual IPropertyMapper IdBag(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData)
+		public virtual IPropertyMapper IdBag(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData)
 		{
 			throw new NotImplementedException("Non generic idbag is not supported by DefaultCollectionMapperFactory");
 		}

File Src/NHibernate.Envers/Configuration/Metadata/ICollectionMapperFactory.cs

 		/// Creates a new <see cref="IPropertyMapper"/> for an 
 		/// <see cref="System.Collections.Generic.IList{T}"/> with identifier bag semantics.
 		/// </summary>
-		IPropertyMapper IdBag<T>(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData);
+		IPropertyMapper IdBag<T>(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData);
 
 		/// <summary>
 		/// Creates a new <see cref="IPropertyMapper"/> for an 
 		/// <see cref="System.Collections.IList"/> with identifier bag semantics.
 		/// </summary>
-		IPropertyMapper IdBag(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData, MiddleComponentData indexComponentData);
+		IPropertyMapper IdBag(IEnversProxyFactory enversProxyFactory, CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData);
 
 
 		/// <summary>

File Src/ReleaseNotes.txt

+=== vNExt ====
+
+*** Possible breaking change ***
+* ICollectionMapperFactory.IdBag and IdBag<T> signature changed. IndexComponentData no longer passed.
+
+
+
 === 1.4 GA (v 1.4.0.0), ???, NH 3.3.1 GA ===
 
 ** Bug