From: Michael D. <mik...@us...> - 2004-06-07 20:42:07
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9702 Modified Files: Container.cs Container.hbm.xml Log Message: Continued to add Domain Classes and mappings for test fixtures. Index: Container.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Container.hbm.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Container.hbm.xml 3 Jun 2004 18:55:57 -0000 1.4 --- Container.hbm.xml 7 Jun 2004 20:41:30 -0000 1.5 *************** *** 50,54 **** <index column="list_index" /> <composite-element ! class="NHibernate.DomainModel.Container$ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> --- 50,54 ---- <index column="list_index" /> <composite-element ! class="NHibernate.DomainModel.Container+ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> *************** *** 68,72 **** <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container$ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> --- 68,72 ---- <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container+ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> *************** *** 83,87 **** <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container$ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> --- 83,87 ---- <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container+ContainerInnerClass, NHibernate.DomainModel" > <property name="Name" /> *************** *** 137,141 **** /> <composite-element ! class="NHibernate.DomainModel.Container$Ternary, NHibernate.DomainModel" > <property name="Name" /> --- 137,141 ---- /> <composite-element ! class="NHibernate.DomainModel.Container+Ternary, NHibernate.DomainModel" > <property name="Name" /> *************** *** 147,151 **** <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container$Ternary, NHibernate.DomainModel" > <property name="Name" /> --- 147,151 ---- <key column="container_id" /> <composite-element ! class="NHibernate.DomainModel.Container+Ternary, NHibernate.DomainModel" > <property name="Name" /> Index: Container.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/Container.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Container.cs 2 Jun 2004 04:53:24 -0000 1.1 --- Container.cs 7 Jun 2004 20:41:30 -0000 1.2 *************** *** 1,18 **** using System; namespace NHibernate.DomainModel { - //TODO: write all of this... - /// <summary> - /// Summary description for Container. - /// </summary> public class Container { ! public Container() { ! // ! // TODO: Add constructor logic here ! // } } } --- 1,160 ---- using System; + using System.Collections; namespace NHibernate.DomainModel { public class Container { ! public sealed class ContainerInnerClass { ! private Simple _simple; ! private string _name; ! private One _one; ! private Many _many; ! private int _count; ! ! public Simple Simple ! { ! get { return _simple; } ! set { _simple = value; } ! } ! ! public string Name ! { ! get { return _name; } ! set { _name = value; } ! } ! ! public One One ! { ! get { return _one; } ! set { _one = value; } ! } ! ! public Many Many ! { ! get { return _many; } ! set { _many = value; } ! } ! ! public int Count ! { ! get { return _count; } ! set { _count = value; } ! } ! ! #region System.Object Members ! ! public override string ToString() ! { ! return _name + " = " + _simple.Count ! + "/" + ( _one==null ? "nil" : _one.Key.ToString() ) ! + "/" + ( _many==null ? "nii" : _many.Key.ToString() ); ! } ! ! #endregion ! } ! ! public sealed class Ternary ! { ! private string _name; ! private Foo _foo; ! private Glarch _glarch; ! ! public string Name ! { ! get { return _name; } ! set { _name = value; } ! } ! ! public Foo Foo ! { ! get { return _foo; } ! set { _foo = value; } ! } ! ! public Glarch Glarch ! { ! get { return _glarch; } ! set { _glarch = value; } ! } ! ! } ! ! ! private IList _oneToMany; ! private IList _components; ! private IList _manyToMany; ! // <set> mapping ! private IDictionary _composites; ! private IList _cascades; ! private long _id; ! private IList _bag; ! private IList _lazyBag = new ArrayList(); ! private IDictionary _ternaryMap; ! //<set> mapping ! private IDictionary _ternarySet; ! ! ! public IList OneToMany ! { ! get { return _oneToMany; } ! set { _oneToMany = value; } ! } ! ! public IList ManyToMany ! { ! get { return _manyToMany; } ! set { _manyToMany = value; } } + + public IList Components + { + get { return _components; } + set { _components = value; } + } + + public IDictionary Composites + { + get { return _composites; } + set { _composites = value; } + } + + public IList Cascades + { + get { return _cascades; } + set { _cascades = value; } + } + + public long Id + { + get { return _id; } + set { _id = value; } + } + + public IList Bag + { + get { return _bag; } + set { _bag = value; } + } + + public IList LazyBag + { + get { return _lazyBag; } + set { _lazyBag = value; } + } + + public IDictionary TernaryMap + { + get { return _ternaryMap; } + set { _ternaryMap = value; } + } + + public IDictionary TernarySet + { + get { return _ternarySet; } + set { _ternarySet = value; } + } + } } |