From: Kevin W. <kev...@us...> - 2004-12-31 21:27:40
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32052 Modified Files: List.cs ManyToOne.cs Map.cs OneToMany.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: OneToMany.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/OneToMany.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** OneToMany.cs 13 Apr 2004 02:06:54 -0000 1.3 --- OneToMany.cs 31 Dec 2004 21:27:30 -0000 1.4 *************** *** 1,13 **** - using System; using NHibernate.Type; ! namespace NHibernate.Mapping { ! public class OneToMany { private EntityType type; private Table referencingTable; ! public EntityType Type { get { return type; } --- 1,14 ---- using NHibernate.Type; ! namespace NHibernate.Mapping { ! /// <summary></summary> ! public class OneToMany { private EntityType type; private Table referencingTable; ! /// <summary></summary> ! public EntityType Type { get { return type; } *************** *** 15,27 **** } ! public OneToMany(PersistentClass owner) { ! this.referencingTable = (owner==null) ? null : owner.Table; } ! public Table ReferencingTable { get { return referencingTable; } } } ! } --- 16,33 ---- } ! /// <summary> ! /// ! /// </summary> ! /// <param name="owner"></param> ! public OneToMany( PersistentClass owner ) { ! this.referencingTable = ( owner == null ) ? null : owner.Table; } ! /// <summary></summary> ! public Table ReferencingTable { get { return referencingTable; } } } ! } \ No newline at end of file Index: Map.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/Map.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Map.cs 27 Apr 2004 15:49:22 -0000 1.5 --- Map.cs 31 Dec 2004 21:27:30 -0000 1.6 *************** *** 1,33 **** ! using System; ! using NHibernate.Type; using NHCollection = NHibernate.Collection; ! ! namespace NHibernate.Mapping ! { ! public class Map : IndexedCollection { ! public Map(PersistentClass owner) : base(owner) { } ! public override PersistentCollectionType Type { ! get ! { ! return IsSorted ? ! TypeFactory.SortedMap( Role, Comparer ) : ! TypeFactory.Map( Role ); } } ! public override System.Type WrapperClass { ! get ! { ! return IsSorted ? ! typeof(NHCollection.SortedMap) : ! typeof(NHCollection.Map); } } } ! } --- 1,41 ---- ! using NHibernate.Collection; using NHibernate.Type; + using Collection_Map = NHibernate.Collection.Map; using NHCollection = NHibernate.Collection; ! namespace NHibernate.Mapping ! { ! /// <summary></summary> ! public class Map : IndexedCollection { ! /// <summary> ! /// ! /// </summary> ! /// <param name="owner"></param> ! public Map( PersistentClass owner ) : base( owner ) ! { ! } ! /// <summary></summary> ! public override PersistentCollectionType Type { ! get ! { ! return IsSorted ? ! TypeFactory.SortedMap( Role, Comparer ) : ! TypeFactory.Map( Role ); } } ! /// <summary></summary> ! public override System.Type WrapperClass { ! get ! { ! return IsSorted ? ! typeof( SortedMap ) : ! typeof( Collection_Map ); } } } ! } \ No newline at end of file Index: ManyToOne.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/ManyToOne.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ManyToOne.cs 13 Apr 2004 02:06:54 -0000 1.3 --- ManyToOne.cs 31 Dec 2004 21:27:30 -0000 1.4 *************** *** 1,30 **** - using System; - using NHibernate.Util; using NHibernate.Type; ! namespace NHibernate.Mapping { ! public class ManyToOne : Association { ! ! public ManyToOne(Table table) : base(table) { } ! public override void SetTypeByReflection(System.Type propertyClass, string propertyName) { ! try { ! if (Type==null) ! Type = TypeFactory.ManyToOne( ReflectHelper.GetGetter(propertyClass, propertyName).ReturnType); ! } ! catch (HibernateException he) { ! throw new MappingException("Problem trying to set association type by reflection", he); } } ! public override void CreateForeignKey() { ! CreateForeignKeyOfClass( ( (EntityType)Type).PersistentClass ); } } ! } --- 1,43 ---- using NHibernate.Type; + using NHibernate.Util; ! namespace NHibernate.Mapping { ! /// <summary></summary> ! public class ManyToOne : Association { ! /// <summary> ! /// ! /// </summary> ! /// <param name="table"></param> ! public ManyToOne( Table table ) : base( table ) ! { ! } ! /// <summary> ! /// ! /// </summary> ! /// <param name="propertyClass"></param> ! /// <param name="propertyName"></param> ! public override void SetTypeByReflection( System.Type propertyClass, string propertyName ) { ! try { ! if( Type == null ) ! { ! Type = TypeFactory.ManyToOne( ReflectHelper.GetGetter( propertyClass, propertyName ).ReturnType ); ! } ! } ! catch( HibernateException he ) { ! throw new MappingException( "Problem trying to set association type by reflection", he ); } } ! /// <summary></summary> ! public override void CreateForeignKey() { ! CreateForeignKeyOfClass( ( ( EntityType ) Type ).PersistentClass ); } } ! } \ No newline at end of file Index: List.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Mapping/List.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** List.cs 13 Apr 2004 02:06:54 -0000 1.6 --- List.cs 31 Dec 2004 21:27:30 -0000 1.7 *************** *** 1,28 **** - using System; - using NHibernate.Type; using NHCollection = NHibernate.Collection; ! namespace NHibernate.Mapping { /// <summary> /// A list has a primary key consisting of the key columns + index column /// </summary> ! public class List : IndexedCollection { ! public List(PersistentClass owner) : base(owner) ! { } ! public override PersistentCollectionType Type { get { return TypeFactory.List( Role ); } } ! public override System.Type WrapperClass { ! get { return typeof(NHCollection.List); } } ! } ! } --- 1,33 ---- using NHibernate.Type; + using Collection_List = NHibernate.Collection.List; using NHCollection = NHibernate.Collection; ! namespace NHibernate.Mapping { /// <summary> /// A list has a primary key consisting of the key columns + index column /// </summary> ! public class List : IndexedCollection { ! /// <summary> ! /// ! /// </summary> ! /// <param name="owner"></param> ! public List( PersistentClass owner ) : base( owner ) ! { } ! /// <summary></summary> ! public override PersistentCollectionType Type { get { return TypeFactory.List( Role ); } } ! /// <summary></summary> ! public override System.Type WrapperClass { ! get { return typeof( Collection_List ); } } ! } ! } \ No newline at end of file |