From: Michael D. <mik...@us...> - 2004-04-14 18:07:52
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28361 Modified Files: BasicClass.cs BasicClass.hbm.xml Log Message: Added property to the class for a bag mapping. Index: BasicClass.hbm.xml =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/BasicClass.hbm.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** BasicClass.hbm.xml 10 Apr 2004 03:15:44 -0000 1.5 --- BasicClass.hbm.xml 14 Apr 2004 18:07:42 -0000 1.6 *************** *** 30,34 **** <property name="YesNoProperty" type="YesNo" column="yn_p"/> - <array name="StringArray" table="bc_starr" > <key column="bc_id" /> --- 30,33 ---- *************** *** 43,46 **** --- 42,50 ---- </primitive-array> + <bag name="StringBag" table="bc_stbag"> + <key column="bc_id" /> + <element column="str_value" type="String(25)" /> + </bag> + <list name="StringList" table="bc_stlst"> <key column="bc_id" /> *************** *** 49,53 **** </list> ! <map name="StringMap" table="bc_stmap"> <key column="bc_id"/> <index column="strm_idx" type="String(10)" /> --- 53,57 ---- </list> ! <map name="StringMap" table="bc_stmap" > <key column="bc_id"/> <index column="strm_idx" type="String(10)" /> Index: BasicClass.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.DomainModel/BasicClass.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BasicClass.cs 22 Mar 2004 04:46:21 -0000 1.3 --- BasicClass.cs 14 Apr 2004 18:07:40 -0000 1.4 *************** *** 59,65 **** private bool trueFalseProperty; private bool yesNoProperty; ! private string[] stringArray; private int[] int32Array; private IList stringList; private IDictionary stringMap; --- 59,66 ---- private bool trueFalseProperty; private bool yesNoProperty; ! private string[] stringArray; private int[] int32Array; + private IList stringBag; private IList stringList; private IDictionary stringMap; *************** *** 200,203 **** --- 201,210 ---- } + public IList StringBag + { + get { return stringBag; } + set { stringBag = value; } + } + public IList StringList { |