From: Michael D. <mik...@us...> - 2005-01-05 03:26:46
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23717/NHibernate.DomainModel Modified Files: Foo.cs FooBar.hbm.xml Log Message: Added a test for formula="" mapping. Index: FooBar.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/FooBar.hbm.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** FooBar.hbm.xml 16 Dec 2004 21:57:39 -0000 1.20 --- FooBar.hbm.xml 5 Jan 2005 03:26:35 -0000 1.21 *************** *** 69,73 **** <property name="Locale" column="`localeayzabc123!@#$`" access="field.camelcase-underscore" type="locale"/> ! <property name="Formula" formula="1/2 * int_"/> <property name="Custom" type="NHibernate.DomainModel.DoubleStringType, NHibernate.DomainModel" access="field.camelcase"> --- 69,77 ---- <property name="Locale" column="`localeayzabc123!@#$`" access="field.camelcase-underscore" type="locale"/> ! <!-- ! h2.0.3 had this a 1/2 * int_ - but with Mssql that was returning 0 (which could be mistaken ! for an uninitialized Int32 ! --> ! <property name="Formula" formula="2 * int_"/> <property name="Custom" type="NHibernate.DomainModel.DoubleStringType, NHibernate.DomainModel" access="field.camelcase"> Index: Foo.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Foo.cs,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Foo.cs 20 Dec 2004 05:06:29 -0000 1.15 --- Foo.cs 5 Jan 2005 03:26:35 -0000 1.16 *************** *** 49,53 **** private byte[] _bytes; private System.Globalization.CultureInfo _locale; ! private String _formula; private string[] custom; private int _version; --- 49,54 ---- private byte[] _bytes; private System.Globalization.CultureInfo _locale; ! // in h2.0.3 this was a float ! private int _formula; private string[] custom; private int _version; *************** *** 257,261 **** /// Get/set for formula /// </summary> ! public String Formula { get { return _formula; } --- 258,262 ---- /// Get/set for formula /// </summary> ! public int Formula { get { return _formula; } |