Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10534/NHibernate.DomainModel/NHSpecific
Added Files:
BasicTime.cs BasicTime.hbm.xml
Log Message:
Moved TimeType to its own test classes in the NHSpecific area and out
of the ported classes. MySql does not follow the DbType.Time docs so
this will help to isolate failing tests to just that datatype.
--- NEW FILE: BasicTime.hbm.xml ---
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class
name="NHibernate.DomainModel.NHSpecific.BasicTime, NHibernate.DomainModel"
table="bc_time"
>
<id name="Id" column="id">
<generator class="assigned" />
</id>
<property name="TimeValue" type="Time" column="timecol"/>
<array name="TimeArray" table="bct_arr">
<key>
<column name="bct_id" length="16" />
</key>
<index column="j"/>
<element type="Time" column="the_time" />
</array>
</class>
</hibernate-mapping>
--- NEW FILE: BasicTime.cs ---
using System;
namespace NHibernate.DomainModel.NHSpecific
{
/// <summary>
/// Summary description for BasicTime.
/// </summary>
public class BasicTime
{
private int _id;
private DateTime _timeValue;
private DateTime[] _timeArray;
public BasicTime()
{
}
public int Id
{
get { return _id; }
set { _id = value; }
}
public DateTime TimeValue
{
get { return _timeValue; }
set { _timeValue = value; }
}
public DateTime[] TimeArray
{
get { return _timeArray; }
set { _timeArray = value; }
}
}
}
|