From: Michael D. <mik...@us...> - 2004-08-31 21:23:12
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18669/src/NHibernate.DomainModel/NHSpecific Modified Files: BasicBinary.hbm.xml BasicObject.cs BasicObject.hbm.xml Log Message: Beginning to isolate the Types so I can figure out what is ADO.NET driver problems and which are NHibernate problems. NH works great with Ms Sql 2000, but not so great with MySql & Oracle. Index: BasicBinary.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific/BasicBinary.hbm.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicBinary.hbm.xml 29 Jun 2004 04:28:08 -0000 1.1 --- BasicBinary.hbm.xml 31 Aug 2004 21:22:58 -0000 1.2 *************** *** 11,15 **** </id> ! <property name="DefaultSize" type="Byte[]" column="bin_def"/> <property name="WithSize" type="Byte[](2048880)" column="bin_size" /> </class> --- 11,15 ---- </id> ! <property name="DefaultSize" column="bin_def"/> <property name="WithSize" type="Byte[](2048880)" column="bin_size" /> </class> Index: BasicObject.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific/BasicObject.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicObject.cs 31 Aug 2004 20:24:24 -0000 1.1 --- BasicObject.cs 31 Aug 2004 21:22:58 -0000 1.2 *************** *** 14,19 **** { private int _id; - private object _any; private string _name; public int Id --- 14,20 ---- { private int _id; private string _name; + private object _any; + private object _anyProxy; public int Id *************** *** 35,38 **** --- 36,45 ---- } + public object AnyWithProxy + { + get { return _anyProxy; } + set { _anyProxy = value; } + } + } *************** *** 59,61 **** --- 66,99 ---- } + + public interface IBasicObjectProxy + { + int Id { get; set; } + string Name { get; set; } + } + + [Serializable] + public class BasicObjectProxy : IBasicObjectProxy + { + private int _id; + private string _name; + + #region IBasicObjectProxy Members + + public int Id + { + get { return _id; } + set { _id = value; } + } + + public string Name + { + get { return _name; } + set { _name = value; } + } + + #endregion + + } + } Index: BasicObject.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHSpecific/BasicObject.hbm.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicObject.hbm.xml 31 Aug 2004 20:24:24 -0000 1.1 --- BasicObject.hbm.xml 31 Aug 2004 21:22:58 -0000 1.2 *************** *** 14,17 **** --- 14,23 ---- <column name="id_ser" /> </property> + + <property name="AnyWithProxy" type="Object" > + <column name="the_ptype" /> + <column name="id_pser" /> + </property> + </class> *************** *** 27,30 **** --- 33,52 ---- </class> + <class + name="NHibernate.DomainModel.NHSpecific.BasicObjectProxy, NHibernate.DomainModel" + table="bc_ref_p" + + > + <!-- + uncomment once proxies are working + proxy="NHibernate.DomainModel.NHSpecific.IBasicObjectProxy, NHibernate.DomainModel" + --> + <id name="Id"> + <generator class="native" /> + </id> + + <property name="Name" /> + + </class> </hibernate-mapping> \ No newline at end of file |