From: Kevin W. <kev...@us...> - 2004-12-31 21:26:36
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31814 Modified Files: Any.cs Array.cs Association.cs Bag.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: Any.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/Any.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Any.cs 13 Apr 2004 02:06:54 -0000 1.4 --- Any.cs 31 Dec 2004 21:26:25 -0000 1.5 *************** *** 1,8 **** using System; - using NHibernate.Type; namespace NHibernate.Mapping { public class Any : Value { --- 1,8 ---- using System; using NHibernate.Type; namespace NHibernate.Mapping { + /// <summary></summary> public class Any : Value { *************** *** 10,18 **** private IType metaType = TypeFactory.GetTypeType(); ! public Any(Table table) : base(table) { } ! public override bool IsAny { get { return true; } --- 10,23 ---- private IType metaType = TypeFactory.GetTypeType(); ! /// <summary> ! /// ! /// </summary> ! /// <param name="table"></param> ! public Any( Table table ) : base( table ) { } ! /// <summary></summary> ! public override bool IsAny { get { return true; } *************** *** 22,26 **** /// Get or set the identifier type /// </summary> ! public virtual IType IdentifierType { get { return identifierType; } --- 27,31 ---- /// Get or set the identifier type /// </summary> ! public virtual IType IdentifierType { get { return identifierType; } *************** *** 28,43 **** } ! public override IType Type { ! get { return new ObjectType(metaType, identifierType); } ! set { throw new NotSupportedException("cannot set type of an Any"); } } ! public override void SetTypeByReflection(System.Type propertyClass, string propertyName) {} /// <summary> /// Get or set the metatype /// </summary> ! public virtual IType MetaType { get { return metaType; } --- 33,56 ---- } ! /// <summary></summary> ! public override IType Type { ! get { return new ObjectType( metaType, identifierType ); } ! set { throw new NotSupportedException( "cannot set type of an Any" ); } } ! /// <summary> ! /// ! /// </summary> ! /// <param name="propertyClass"></param> ! /// <param name="propertyName"></param> ! public override void SetTypeByReflection( System.Type propertyClass, string propertyName ) ! { ! } /// <summary> /// Get or set the metatype /// </summary> ! public virtual IType MetaType { get { return metaType; } Index: Bag.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/Bag.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Bag.cs 13 Apr 2004 02:06:54 -0000 1.4 --- Bag.cs 31 Dec 2004 21:26:26 -0000 1.5 *************** *** 1,3 **** - using System; using NHibernate.Type; using NHibernateBag=NHibernate.Collection.Bag; --- 1,2 ---- *************** *** 10,27 **** public class Bag : Collection { ! public Bag(PersistentClass owner) : base(owner) { } ! public override PersistentCollectionType Type { ! get { return TypeFactory.Bag( Role );} } ! ! public override System.Type WrapperClass { ! get { return typeof(NHibernateBag); } } } ! } --- 9,32 ---- public class Bag : Collection { ! /// <summary> ! /// ! /// </summary> ! /// <param name="owner"></param> ! public Bag( PersistentClass owner ) : base( owner ) { } ! /// <summary></summary> ! public override PersistentCollectionType Type { ! get { return TypeFactory.Bag( Role ); } } ! ! /// <summary></summary> ! public override System.Type WrapperClass { ! get { return typeof( NHibernateBag ); } } } ! } \ No newline at end of file Index: Association.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/Association.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Association.cs 13 Apr 2004 02:06:54 -0000 1.3 --- Association.cs 31 Dec 2004 21:26:26 -0000 1.4 *************** *** 1,15 **** - using System; using NHibernate.Loader; ! namespace NHibernate.Mapping { ! ! public abstract class Association : Value { private OuterJoinLoaderType joinedFetch; ! protected Association(Table table) : base(table) {} ! public override OuterJoinLoaderType OuterJoinFetchSetting { get { return joinedFetch; } --- 1,21 ---- using NHibernate.Loader; ! namespace NHibernate.Mapping { ! /// <summary></summary> ! public abstract class Association : Value { private OuterJoinLoaderType joinedFetch; ! /// <summary> ! /// ! /// </summary> ! /// <param name="table"></param> ! protected Association( Table table ) : base( table ) ! { ! } ! /// <summary></summary> ! public override OuterJoinLoaderType OuterJoinFetchSetting { get { return joinedFetch; } *************** *** 17,23 **** } ! public abstract override void SetTypeByReflection(System.Type propertyClass, string propertyName); public abstract override void CreateForeignKey(); } ! } --- 23,36 ---- } ! /// <summary> ! /// ! /// </summary> ! /// <param name="propertyClass"></param> ! /// <param name="propertyName"></param> ! public abstract override void SetTypeByReflection( System.Type propertyClass, string propertyName ); ! ! /// <summary></summary> public abstract override void CreateForeignKey(); } ! } \ No newline at end of file Index: Array.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/Array.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Array.cs 13 Apr 2004 02:06:54 -0000 1.3 --- Array.cs 31 Dec 2004 21:26:26 -0000 1.4 *************** *** 1,18 **** ! using System; using NHibernate.Type; - using ArrayHolder=NHibernate.Collection.ArrayHolder; ! namespace NHibernate.Mapping { /// <summary> /// An array has a primary key consisting of the key columns + index column /// </summary> ! public class Array : List { private System.Type elementClass; ! public Array(PersistentClass owner) : base(owner) { } ! public System.Type ElementClass { get { return elementClass; } --- 1,24 ---- ! using NHibernate.Collection; using NHibernate.Type; ! namespace NHibernate.Mapping { /// <summary> /// An array has a primary key consisting of the key columns + index column /// </summary> ! public class Array : List { private System.Type elementClass; ! /// <summary> ! /// ! /// </summary> ! /// <param name="owner"></param> ! public Array( PersistentClass owner ) : base( owner ) ! { ! } ! /// <summary></summary> ! public System.Type ElementClass { get { return elementClass; } *************** *** 20,33 **** } ! public override PersistentCollectionType Type { get { return TypeFactory.Array( Role, ElementClass ); } } ! public override System.Type WrapperClass { ! get { return typeof(ArrayHolder); } } ! public override bool IsArray { get { return true; } --- 26,43 ---- } ! /// <summary></summary> ! public override PersistentCollectionType Type { get { return TypeFactory.Array( Role, ElementClass ); } } ! /// <summary></summary> ! public override System.Type WrapperClass { ! get { return typeof( ArrayHolder ); } } ! ! /// <summary></summary> ! public override bool IsArray { get { return true; } *************** *** 36,38 **** } ! } --- 46,48 ---- } ! } \ No newline at end of file |