From: Michael D. <mik...@us...> - 2004-08-31 21:23:12
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18669/src/NHibernate.DomainModel Modified Files: Fo.cs Fo.hbm.xml Foo.cs FooBar.hbm.xml FooProxy.cs Glarch.cs Glarch.hbm.xml GlarchProxy.cs 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: FooBar.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/FooBar.hbm.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** FooBar.hbm.xml 31 Aug 2004 20:24:23 -0000 1.15 --- FooBar.hbm.xml 31 Aug 2004 21:22:58 -0000 1.16 *************** *** 71,75 **** <property name="Status" column="`status_@###`" type="NHibernate.DomainModel.FooStatus, NHibernate.DomainModel"/> - <property name="Binary" column="bin_"/> <property name="Locale" column="`localeayzabc123!@#$`" access="field.camelcase-underscore" type="locale"/> --- 71,74 ---- Index: Glarch.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Glarch.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Glarch.cs 13 Aug 2004 18:54:29 -0000 1.7 --- Glarch.cs 31 Aug 2004 21:22:58 -0000 1.8 *************** *** 18,22 **** private string _immutable; private int _derivedVersion; ! private object _any; private int _x; private Multiplicity _multiple; --- 18,22 ---- private string _immutable; private int _derivedVersion; ! // private object _any; private int _x; private Multiplicity _multiple; *************** *** 150,164 **** /// <summary> - /// Gets or sets the _any - /// </summary> - public object Any - { - get { return _any; } - set { _any = value; } - } - - - - /// <summary> /// Gets or sets the _multiple /// </summary> --- 150,153 ---- Index: Fo.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Fo.hbm.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Fo.hbm.xml 31 Aug 2004 20:24:23 -0000 1.8 --- Fo.hbm.xml 31 Aug 2004 21:22:45 -0000 1.9 *************** *** 30,34 **** /> ! <property name="Buf" length="500"/> <property name="X" /> </class> --- 30,34 ---- /> ! <property name="X" /> </class> Index: Foo.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Foo.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Foo.cs 31 Aug 2004 20:24:23 -0000 1.12 --- Foo.cs 31 Aug 2004 21:22:58 -0000 1.13 *************** *** 23,43 **** public class Foo : FooProxy, ILifecycle { - // [Serializable] - // public class Struct - // { - // public string name; - // public int count; - // - // public override bool Equals(object obj) - // { - // Struct s = (Struct) obj; - // return ( s.name==name || s.name.Equals(name) ) && s.count==count; - // } - // - // public override int GetHashCode() - // { - // return count; - // } - // } #region Fields --- 23,26 ---- *************** *** 64,68 **** private bool _yesno; private FooStatus _status; - private byte[] _binary; private byte[] _bytes; private System.Globalization.CultureInfo _locale; --- 47,50 ---- *************** *** 256,268 **** set { _status = value; } } - - /// <summary> - /// Get/set for binary - /// </summary> - public byte[] Binary - { - get { return _binary; } - set { _binary = value; } - } public byte[] Bytes --- 238,241 ---- *************** *** 371,375 **** _bytes = System.Text.Encoding.ASCII.GetBytes(_string); _status=FooStatus.ON; - _binary = System.Text.Encoding.ASCII.GetBytes( _string + "yada yada yada" ); custom = new string[] { --- 344,347 ---- *************** *** 409,422 **** } } - - if(_binary!=other.Binary) - { - if (_binary==null || other.Binary==null) return false; - if (_binary.Length!=other.Binary.Length) return false; - for(int i=0; i< _binary.Length; i++) - { - if( _binary[i]!=other.Binary[i] ) return false; - } - } return ( _bool == other.Bool ) --- 381,384 ---- Index: GlarchProxy.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/GlarchProxy.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GlarchProxy.cs 13 Aug 2004 18:54:29 -0000 1.3 --- GlarchProxy.cs 31 Aug 2004 21:22:58 -0000 1.4 *************** *** 64,73 **** get; set; ! } ! object Any ! { ! get; ! set; ! } } } \ No newline at end of file --- 64,68 ---- get; set; ! } } } \ No newline at end of file Index: FooProxy.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/FooProxy.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FooProxy.cs 31 Aug 2004 20:24:23 -0000 1.6 --- FooProxy.cs 31 Aug 2004 21:22:58 -0000 1.7 *************** *** 4,8 **** { - //TODO: fix up these property names for .net standards public interface FooProxy { --- 4,7 ---- *************** *** 23,32 **** } - byte[] Binary - { - get; - set; - } - FooStatus Status { --- 22,25 ---- Index: Fo.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Fo.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Fo.cs 31 Aug 2004 20:24:17 -0000 1.2 --- Fo.cs 31 Aug 2004 21:22:45 -0000 1.3 *************** *** 12,25 **** private Fo() {} - private byte[] _buf; private long _version; private int _x; - public byte[] Buf - { - get { return _buf; } - set { _buf = value; } - } - public long Version { --- 12,18 ---- Index: Glarch.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Glarch.hbm.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Glarch.hbm.xml 13 Aug 2004 18:54:29 -0000 1.8 --- Glarch.hbm.xml 31 Aug 2004 21:22:58 -0000 1.9 *************** *** 111,120 **** column="version" /> ! ! <property name="Any" type="Object"> ! <column name="`any_id of object`" /> ! <column name="`any_class of object`" /> ! </property> ! <property name="Multiple" --- 111,115 ---- column="version" /> ! <property name="Multiple" |