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

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Jan 8 04:36:38 EST 2009


Author: gbadner
Date: 2009-01-08 04:36:38 -0500 (Thu, 08 Jan 2009)
New Revision: 15755

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


Modified: core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml	2009-01-07 20:38:25 UTC (rev 15754)
+++ core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/entitymode/dom4j/basic/Account.hbm.xml	2009-01-08 09:36:38 UTC (rev 15755)
@@ -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_4_SP1_CP/test/org/hibernate/test/pagination/DataPoint.hbm.xml
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/pagination/DataPoint.hbm.xml	2009-01-07 20:38:25 UTC (rev 15754)
+++ core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/pagination/DataPoint.hbm.xml	2009-01-08 09:36:38 UTC (rev 15755)
@@ -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