From: Peter S. <sz...@us...> - 2004-04-08 17:35:19
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29550/NHibernate.DomainModel Modified Files: Baz.hbm.xml NHibernate.DomainModel-1.1.csproj Added Files: Bar.cs BarProxy.cs ComponentCollection.cs NestingComponent.cs ReverseComparator.cs StringComparator.cs Log Message: Still some entities. --- NEW FILE: Bar.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public class Bar : Abstract, BarProxy { /// <summary> /// Holds the _x /// </summary> private int _x; /// <summary> /// Gets or sets the _x /// </summary> public new int x { get { return _x; } set { _x = value; } } /// <summary> /// Holds the _barString /// </summary> private string _barString; /// <summary> /// Gets or sets the _barString /// </summary> public string barString { get { return _barString; } set { _barString = value; } } /// <summary> /// Holds the _barComponent /// </summary> private FooComponent _barComponent = new FooComponent("bar", 69, null, null); /// <summary> /// Gets or sets the _barComponent /// </summary> public FooComponent barComponent { get { return _barComponent; } set { _barComponent = value; } } /// <summary> /// Holds the _baz /// </summary> private Baz _baz; /// <summary> /// Gets or sets the _baz /// </summary> public Baz baz { get { return _baz; } set { _baz = value; } } /// <summary> /// Holds the _name /// </summary> private string _name = "bar"; /// <summary> /// Gets or sets the _name /// </summary> public string name { get { return _name; } set { _name = value; } } /// <summary> /// Holds the _object /// </summary> private object _object; /// <summary> /// Gets or sets the _object /// </summary> public object @object { get { return _object; } set { _object = value; } } } } Index: Baz.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Baz.hbm.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Baz.hbm.xml 8 Apr 2004 15:55:46 -0000 1.3 --- Baz.hbm.xml 8 Apr 2004 17:22:08 -0000 1.4 *************** *** 23,27 **** </key> <index column="i"/> ! <element column="j" type="int"/> </primitive-array> <set name="fooSet" lazy="true" order-by="string_"> --- 23,27 ---- </key> <index column="i"/> ! <element column="j" type="Int32"/> </primitive-array> <set name="fooSet" lazy="true" order-by="string_"> *************** *** 53,57 **** </key> <index column="j"/> ! <element column="the_time" type="time"/> </array> <bag name="bag" order-by="`name!`" table="`$%^^b'a'g`"> --- 53,57 ---- </key> <index column="j"/> ! <element column="the_time" type="Time"/> </array> <bag name="bag" order-by="`name!`" table="`$%^^b'a'g`"> --- NEW FILE: ReverseComparator.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public class ReverseComparator : IComparer { #region IComparer Members public int Compare(object x, object y) { return - ((IComparable)x).CompareTo(y); } #endregion } } --- NEW FILE: NestingComponent.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public class NestingComponent { /// <summary> /// Holds the _nested /// </summary> private ComponentCollection _nested; /// <summary> /// Gets or sets the _nested /// </summary> public ComponentCollection nested { get { return _nested; } set { _nested = value; } } } } Index: NHibernate.DomainModel-1.1.csproj =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/NHibernate.DomainModel-1.1.csproj,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** NHibernate.DomainModel-1.1.csproj 8 Apr 2004 16:44:19 -0000 1.7 --- NHibernate.DomainModel-1.1.csproj 8 Apr 2004 17:22:08 -0000 1.8 *************** *** 128,131 **** --- 128,141 ---- /> <File + RelPath = "Bar.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "BarProxy.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "BasicClass.cs" SubType = "Code" *************** *** 174,177 **** --- 184,192 ---- /> <File + RelPath = "ComponentCollection.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "CompositeElement.cs" SubType = "Code" *************** *** 292,295 **** --- 307,315 ---- /> <File + RelPath = "NestingComponent.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NHibernate.DomainModel.build" BuildAction = "None" *************** *** 332,335 **** --- 352,360 ---- /> <File + RelPath = "ReverseComparator.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "SexType.cs" SubType = "Code" *************** *** 364,367 **** --- 389,397 ---- /> <File + RelPath = "StringComparator.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Stuff.hbm.xml" BuildAction = "EmbeddedResource" --- NEW FILE: BarProxy.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public interface BarProxy : AbstractProxy { Baz baz { get; set; } FooComponent barComponent { get; set; } string barString { get; } object @object { get; set; } } } --- NEW FILE: StringComparator.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public class StringComparator : IComparer { #region IComparer Members public int Compare(object x, object y) { return ( (String) x ).ToLower().CompareTo( ( (String) y ).ToLower() ); } #endregion } } --- NEW FILE: ComponentCollection.cs --- using System; using System.Collections; namespace NHibernate.DomainModel { public class ComponentCollection { /// <summary> /// Holds the _foos /// </summary> private IList _foos; /// <summary> /// Gets or sets the _foos /// </summary> public IList foos { get { return _foos; } set { _foos = value; } } /// <summary> /// Holds the _str /// </summary> private string _str; /// <summary> /// Gets or sets the _str /// </summary> public string str { get { return _str; } set { _str = value; } } /// <summary> /// Holds the _floats /// </summary> private IList _floats; /// <summary> /// Gets or sets the _floats /// </summary> public IList floats { get { return _floats; } set { _floats = value; } } } } |