Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23360/NHibernate/Type
Modified Files:
DateTimeType.cs DateType.cs TimeType.cs
Log Message:
Fixed small bug in collectionpersister in sqlwherestring. Fixed IVersionType in abstractentitypersister consstructor for nonversionable types (ugly fix). Added datetimes as versiontypes.
Index: TimeType.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/TimeType.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TimeType.cs 18 Mar 2004 19:05:58 -0000 1.1
--- TimeType.cs 9 Apr 2004 16:18:00 -0000 1.2
***************
*** 14,18 ****
/// using this Type indicates that you don't care about the Date portion of the DateTime.
/// </remarks>
! public class TimeType : MutableType, IIdentifierType, ILiteralType
{
--- 14,18 ----
/// using this Type indicates that you don't care about the Date portion of the DateTime.
/// </remarks>
! public class TimeType : MutableType, IIdentifierType, ILiteralType, IVersionType
{
***************
*** 87,90 ****
--- 87,100 ----
return "'" + value.ToString() + "'";
}
+
+ public object Next(object current)
+ {
+ return Seed;
+ }
+
+ public object Seed
+ {
+ get { return DateTime.Now; }
+ }
}
}
Index: DateTimeType.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/DateTimeType.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** DateTimeType.cs 17 Feb 2004 03:30:07 -0000 1.3
--- DateTimeType.cs 9 Apr 2004 16:18:00 -0000 1.4
***************
*** 16,20 ****
/// or the <see cref="TicksType"/>
/// </remarks>
! public class DateTimeType : MutableType, IIdentifierType, ILiteralType
{
--- 16,20 ----
/// or the <see cref="TicksType"/>
/// </remarks>
! public class DateTimeType : MutableType, IIdentifierType, ILiteralType, IVersionType
{
***************
*** 104,107 ****
--- 104,117 ----
return "'" + value.ToString() + "'";
}
+
+ public object Next(object current)
+ {
+ return Seed;
+ }
+
+ public object Seed
+ {
+ get { return DateTime.Now; }
+ }
}
}
Index: DateType.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/DateType.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DateType.cs 16 Mar 2004 03:49:45 -0000 1.5
--- DateType.cs 9 Apr 2004 16:18:00 -0000 1.6
***************
*** 5,9 ****
namespace NHibernate.Type {
! public class DateType : MutableType, IIdentifierType, ILiteralType {
--- 5,9 ----
namespace NHibernate.Type {
! public class DateType : MutableType, IIdentifierType, ILiteralType, IVersionType {
***************
*** 69,72 ****
--- 69,82 ----
return "'" + value.ToString() + "'";
}
+
+ public object Next(object current)
+ {
+ return Seed;
+ }
+
+ public object Seed
+ {
+ get { return DateTime.Now; }
+ }
}
}
|