[hibernate-commits] Hibernate SVN: r15813 - in core/branches/Branch_3_2/test/org/hibernate/test: pagination and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Jan 23 17:52:53 EST 2009


Author: gbadner
Date: 2009-01-23 17:52:53 -0500 (Fri, 23 Jan 2009)
New Revision: 15813

Modified:
   core/branches/Branch_3_2/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml
   core/branches/Branch_3_2/test/org/hibernate/test/pagination/DataPoint.hbm.xml
Log:
HHH-3696 : Sybase - unit tests fail when numeric values overflow in precision or scale on insert


Modified: core/branches/Branch_3_2/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml
===================================================================
--- core/branches/Branch_3_2/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml	2009-01-23 20:52:11 UTC (rev 15812)
+++ core/branches/Branch_3_2/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml	2009-01-23 22:52:53 UTC (rev 15813)
@@ -38,7 +38,7 @@
         <id name="accountId" type="string" node="@id"/>
         <many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
         <!--not-null="true"-->
-        <property name="balance" type="big_decimal" node="balance" precision="10" scale="0" />
+        <property name="balance" type="big_decimal" node="balance" precision="10" scale="2" />
     </class>
 
     <class entity-name="Location" node="location">
@@ -48,4 +48,4 @@
         <property name="address" type="string"/>
     </class>
 
-</hibernate-mapping>
\ No newline at end of file
+</hibernate-mapping>

Modified: core/branches/Branch_3_2/test/org/hibernate/test/pagination/DataPoint.hbm.xml
===================================================================
--- core/branches/Branch_3_2/test/org/hibernate/test/pagination/DataPoint.hbm.xml	2009-01-23 20:52:11 UTC (rev 15812)
+++ core/branches/Branch_3_2/test/org/hibernate/test/pagination/DataPoint.hbm.xml	2009-01-23 22:52:53 UTC (rev 15813)
@@ -13,10 +13,10 @@
 			<generator class="increment"/>
 		</id>
 		<property name="x">
-			<column name="xval" not-null="true" precision="4" unique-key="xy"/>
+			<column name="xval" not-null="true" precision="20" scale="19" unique-key="xy"/>
 		</property>
 		<property name="y">
-			<column name="yval" not-null="true" precision="4" unique-key="xy"/>
+			<column name="yval" not-null="true" precision="20" scale="19" unique-key="xy"/>
 		</property>
 		<property name="description"/>
 	</class>




More information about the hibernate-commits mailing list