[hibernate-commits] Hibernate SVN: r10419 - trunk/Hibernate3/test/org/hibernate/test/cid

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Sep 1 16:49:56 EDT 2006


Author: steve.ebersole at jboss.com
Date: 2006-09-01 16:49:54 -0400 (Fri, 01 Sep 2006)
New Revision: 10419

Modified:
   trunk/Hibernate3/test/org/hibernate/test/cid/Order.hbm.xml
   trunk/Hibernate3/test/org/hibernate/test/cid/Product.hbm.xml
Log:
fixed failures on SQLServer

Modified: trunk/Hibernate3/test/org/hibernate/test/cid/Order.hbm.xml
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/cid/Order.hbm.xml	2006-09-01 20:37:33 UTC (rev 10418)
+++ trunk/Hibernate3/test/org/hibernate/test/cid/Order.hbm.xml	2006-09-01 20:49:54 UTC (rev 10419)
@@ -41,7 +41,7 @@
     		not-null="true"/>
     	
     	<property name="total" 
-    		formula="( select sum(li.quantity*p.price) from LineItem li, Product p where li.productId = p.productId and li.customerId = customerId and li.orderNumber = orderNumber )"/>
+    		formula="( select sum(li.quantity*p.cost) from LineItem li, Product p where li.productId = p.productId and li.customerId = customerId and li.orderNumber = orderNumber )"/>
     	
     	<many-to-one name="customer"
     		column="customerId"

Modified: trunk/Hibernate3/test/org/hibernate/test/cid/Product.hbm.xml
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/cid/Product.hbm.xml	2006-09-01 20:37:33 UTC (rev 10418)
+++ trunk/Hibernate3/test/org/hibernate/test/cid/Product.hbm.xml	2006-09-01 20:49:54 UTC (rev 10419)
@@ -30,7 +30,7 @@
     	<property name="description" 
     		not-null="true" 
     		length="200"/>
-    	<property name="price" length="3"/>
+    	<property name="price" length="3" column="cost"/>
     	<property name="numberAvailable"/>
     	
     	<property name="numberOrdered"




More information about the hibernate-commits mailing list