From: Michael D. <mik...@us...> - 2004-05-03 04:56:52
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24639/NHibernate/Type Modified Files: TypeFactory.cs Added Files: IdentifierBagType.cs Log Message: Added IdentifierBag to the NH Collections namespace. --- NEW FILE: IdentifierBagType.cs --- using System; using System.Collections; using NHibernate.Collection; using NHibernate.Engine; namespace NHibernate.Type { /// <summary> /// Summary description for IdentifierBagType. /// </summary> public class IdentifierBagType : PersistentCollectionType { public IdentifierBagType(string role) : base(role) { } public override PersistentCollection Instantiate(ISessionImplementor session, CollectionPersister persister) { return new IdentifierBag(session); } public override System.Type ReturnedClass { get { return typeof(ICollection); } } public override PersistentCollection Wrap(ISessionImplementor session, object collection) { return new IdentifierBag(session, (ICollection)collection); } public override PersistentCollection AssembleCachedCollection(ISessionImplementor session, CollectionPersister persister, object disassembled, object owner) { return new IdentifierBag(session, persister, disassembled, owner); } } } Index: TypeFactory.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/TypeFactory.cs,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** TypeFactory.cs 30 Apr 2004 18:39:47 -0000 1.30 --- TypeFactory.cs 3 May 2004 04:56:44 -0000 1.31 *************** *** 1088,1091 **** --- 1088,1096 ---- } + public static PersistentCollectionType IdBag(string role) + { + return new IdentifierBagType(role); + } + public static PersistentCollectionType Map(string role) { |