db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r389504 - /db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java
Date Tue, 28 Mar 2006 14:05:29 GMT
Author: seade
Date: Tue Mar 28 06:05:26 2006
New Revision: 389504

URL: http://svn.apache.org/viewcvs?rev=389504&view=rev
Log:
Use BigDecimal(double) constructor so as to help code compiled under JDK 1.5 execute correctly
under earlier JDKs.
Related Eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=121325

Modified:
    db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java

Modified: db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java
URL: http://svn.apache.org/viewcvs/db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java?rev=389504&r1=389503&r2=389504&view=diff
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java
(original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/engine/database/model/TypeMap.java
Tue Mar 28 06:05:26 2006
@@ -1,7 +1,7 @@
 package org.apache.torque.engine.database.model;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License")
  * you may not use this file except in compliance with the License.
@@ -89,8 +89,8 @@
     public static final String VARCHAR_OBJECT_TYPE = "\"\"";
     public static final String LONGVARCHAR_OBJECT_TYPE = "\"\"";
     public static final String CLOB_OBJECT_TYPE = "\"\"";
-    public static final String NUMERIC_OBJECT_TYPE = "new BigDecimal(0)";
-    public static final String DECIMAL_OBJECT_TYPE = "new BigDecimal(0)";
+    public static final String NUMERIC_OBJECT_TYPE = "new BigDecimal((double) 0)";
+    public static final String DECIMAL_OBJECT_TYPE = "new BigDecimal((double) 0)";
     public static final String BIT_OBJECT_TYPE = "new Boolean(true)";
     public static final String TINYINT_OBJECT_TYPE = "new Byte((byte)0)";
     public static final String SMALLINT_OBJECT_TYPE = "new Short((short)0)";



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message