From: Michael D. <mik...@us...> - 2004-08-09 03:10:37
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7808/NHibernate Modified Files: FetchMode.cs FlushMode.cs ISession.cs LockMode.cs Log Message: Added [Serializable] to match with h2.0.3 Index: FlushMode.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/FlushMode.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FlushMode.cs 29 Apr 2004 14:00:51 -0000 1.2 --- FlushMode.cs 9 Aug 2004 03:10:26 -0000 1.3 *************** *** 1,6 **** using System; ! namespace NHibernate { ! /// <summary> /// Represents a flushing strategy. --- 1,6 ---- using System; ! namespace NHibernate ! { /// <summary> /// Represents a flushing strategy. *************** *** 10,14 **** /// changes and executing SQL statements /// </remarks> ! public enum FlushMode { /// <summary> /// The <c>ISession</c> is never flushed unless <c>Flush()</c> is explicitly --- 10,16 ---- /// changes and executing SQL statements /// </remarks> ! [Serializable] ! public enum FlushMode ! { /// <summary> /// The <c>ISession</c> is never flushed unless <c>Flush()</c> is explicitly Index: FetchMode.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/FetchMode.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FetchMode.cs 28 Mar 2004 06:10:26 -0000 1.1 --- FetchMode.cs 9 Aug 2004 03:10:26 -0000 1.2 *************** *** 3,7 **** namespace NHibernate { - /// <summary> /// Represents a fetching strategy. --- 3,6 ---- *************** *** 14,20 **** /// </para> /// </remarks> public enum FetchMode { - /// <summary> /// Default to the setting configured in the mapping file. --- 13,19 ---- /// </para> /// </remarks> + [Serializable] public enum FetchMode { /// <summary> /// Default to the setting configured in the mapping file. Index: LockMode.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/LockMode.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LockMode.cs 25 Jun 2004 20:44:39 -0000 1.3 --- LockMode.cs 9 Aug 2004 03:10:26 -0000 1.4 *************** *** 2,6 **** using System.Collections; ! namespace NHibernate { /// <summary> /// Instances represent a lock mode for a row of a relational database table. --- 2,7 ---- using System.Collections; ! namespace NHibernate ! { /// <summary> /// Instances represent a lock mode for a row of a relational database table. *************** *** 12,24 **** /// </remarks> [Serializable] ! public sealed class LockMode { private int level; private string name; ! private LockMode(int level, string name) { this.level = level; this.name = name; } ! public override string ToString() { return name; } --- 13,29 ---- /// </remarks> [Serializable] ! public sealed class LockMode ! { private int level; private string name; ! private LockMode(int level, string name) ! { this.level = level; this.name = name; } ! ! public override string ToString() ! { return name; } *************** *** 27,31 **** /// Is this lock mode more restrictive than the given lock mode? /// </summary> ! public bool GreaterThan(LockMode mode) { return level > mode.level; } --- 32,37 ---- /// Is this lock mode more restrictive than the given lock mode? /// </summary> ! public bool GreaterThan(LockMode mode) ! { return level > mode.level; } *************** *** 33,37 **** /// Is this lock mode less restrictive than the given lock mode? /// </summary> ! public bool LessThan(LockMode mode) { return level < mode.level; } --- 39,44 ---- /// Is this lock mode less restrictive than the given lock mode? /// </summary> ! public bool LessThan(LockMode mode) ! { return level < mode.level; } Index: ISession.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/ISession.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ISession.cs 6 Aug 2004 15:42:29 -0000 1.9 --- ISession.cs 9 Aug 2004 03:10:26 -0000 1.10 *************** *** 5,10 **** using NHibernate.Type; ! namespace NHibernate { ! /// <summary> /// The main runtime interface between a Java application and Hibernate. This is the central --- 5,10 ---- using NHibernate.Type; ! namespace NHibernate ! { /// <summary> /// The main runtime interface between a Java application and Hibernate. This is the central *************** *** 66,71 **** /// </para> /// </remarks> ! public interface ISession : IDisposable, ISerializable, IDeserializationCallback { ! /// <summary> /// Force the <c>ISession</c> to flush. --- 66,71 ---- /// </para> /// </remarks> ! public interface ISession : IDisposable ! { /// <summary> /// Force the <c>ISession</c> to flush. |