Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv3452/test
Modified Files:
Container.hbm.xml Container.java Fee.hbm.xml Fee.java
Glarch.hbm.xml
Log Message:
added a test
Index: Container.hbm.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/Container.hbm.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Container.hbm.xml 24 Dec 2002 13:45:38 -0000 1.12
--- Container.hbm.xml 22 Mar 2003 04:39:21 -0000 1.13
***************
*** 23,26 ****
--- 23,27 ----
<composite-element class="cirrus.hibernate.test.Container$ContainerInnerClass">
<property name="name"/>
+ <property name="count" column="count_" />
<many-to-one name="simple"/>
<many-to-one name="one"/>
Index: Container.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/Container.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Container.java 7 Dec 2002 09:41:22 -0000 1.5
--- Container.java 22 Mar 2003 04:39:21 -0000 1.6
***************
*** 15,18 ****
--- 15,19 ----
private One one;
private Many many;
+ private int count;
public void setSimple(Simple simple) {
***************
*** 76,79 ****
--- 77,96 ----
public void setMany(Many many) {
this.many = many;
+ }
+
+ /**
+ * Returns the count.
+ * @return int
+ */
+ public int getCount() {
+ return count;
+ }
+
+ /**
+ * Sets the count.
+ * @param count The count to set
+ */
+ public void setCount(int count) {
+ this.count = count;
}
Index: Fee.hbm.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/Fee.hbm.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Fee.hbm.xml 25 Sep 2002 11:30:14 -0000 1.4
--- Fee.hbm.xml 22 Mar 2003 04:39:21 -0000 1.5
***************
*** 8,11 ****
--- 8,12 ----
</id>
<property name="fi"/>
+ <property name="count" column="count_"/>
<many-to-one name="fee"/>
<many-to-one name="anotherFee"/>
Index: Fee.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/Fee.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Fee.java 28 Oct 2002 19:27:49 -0000 1.6
--- Fee.java 22 Mar 2003 04:39:21 -0000 1.7
***************
*** 13,16 ****
--- 13,17 ----
private Qux qux;
private FooComponent compon;
+ private int count;
public Fee() {
***************
*** 71,74 ****
--- 72,91 ----
public void setCompon(FooComponent compon) {
this.compon = compon;
+ }
+
+ /**
+ * Returns the count.
+ * @return int
+ */
+ public int getCount() {
+ return count;
+ }
+
+ /**
+ * Sets the count.
+ * @param count The count to set
+ */
+ public void setCount(int count) {
+ this.count = count;
}
Index: Glarch.hbm.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/Glarch.hbm.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Glarch.hbm.xml 20 Mar 2003 13:58:49 -0000 1.6
--- Glarch.hbm.xml 22 Mar 2003 04:39:21 -0000 1.7
***************
*** 50,54 ****
</nested-composite-element>
<collection name="importantDates" role="glarch_dates" length="64"/>
! <many-to-one name="fee" cascade="all"/>
</composite-element>
</list>
--- 50,54 ----
</nested-composite-element>
<collection name="importantDates" role="glarch_dates" length="64"/>
! <many-to-one name="fee" cascade="all" outer-join="true"/>
</composite-element>
</list>
|