Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv3614/hibernate/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/Hibernate2/src/net/sf/hibernate/test/Container.hbm.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Container.hbm.xml 9 Feb 2003 06:28:16 -0000 1.4
--- Container.hbm.xml 22 Mar 2003 04:39:49 -0000 1.5
***************
*** 23,26 ****
--- 23,27 ----
<composite-element class="net.sf.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/Hibernate2/src/net/sf/hibernate/test/Container.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Container.java 9 Feb 2003 06:28:16 -0000 1.4
--- Container.java 22 Mar 2003 04:39:49 -0000 1.5
***************
*** 15,18 ****
--- 15,19 ----
private One one;
private Many many;
+ private int count;
public void setSimple(Simple simple) {
***************
*** 78,81 ****
--- 79,98 ----
}
+ /**
+ * 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/Hibernate2/src/net/sf/hibernate/test/Fee.hbm.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Fee.hbm.xml 28 Jan 2003 10:22:21 -0000 1.3
--- Fee.hbm.xml 22 Mar 2003 04:39:49 -0000 1.4
***************
*** 11,14 ****
--- 11,15 ----
<many-to-one name="anotherFee"/>
<many-to-one name="qux" cascade="all"/>
+ <property name="count" column="count_"/>
<set name="fees">
<key column="fee_id"/>
Index: Fee.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/test/Fee.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Fee.java 5 Jan 2003 02:11:23 -0000 1.3
--- Fee.java 22 Mar 2003 04:39:49 -0000 1.4
***************
*** 13,16 ****
--- 13,17 ----
private Qux qux;
private FooComponent compon;
+ private int count;
public Fee() {
***************
*** 73,76 ****
--- 74,93 ----
}
+ /**
+ * 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/Hibernate2/src/net/sf/hibernate/test/Glarch.hbm.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Glarch.hbm.xml 20 Mar 2003 13:59:10 -0000 1.7
--- Glarch.hbm.xml 22 Mar 2003 04:39:49 -0000 1.8
***************
*** 33,37 ****
<property name="count" column="y_"/>
</nested-composite-element>
! <many-to-one name="fee" cascade="all"/>
</composite-element>
</list>
--- 33,37 ----
<property name="count" column="y_"/>
</nested-composite-element>
! <many-to-one name="fee" cascade="all" outer-join="true"/>
</composite-element>
</list>
|