Alex,
Woops, maybe I misled people. JBoss does not fall over when writing out
the real, so of course, there's no stack trace.
The Entity bean getter method looks like:
/**
* Returns the FX fee percentage as a scaled decimal
*
* @return the fx fee percentage
*
* @ejb.interface-method view-type="local"
* @ejb.persistence column-name="FX_FEE_PERCENT"
*/
public abstract BigDecimal getFxFeePercentage();
I've tried changing the DB column type from NUMERIC(10,7) to REAL, but
that had no effect, so I guess the problem is on the java side. Its either
the JDBC driver or the mapping code in JBoss.
Tell me, when is the mapping stuff in standardjbosscmp-jdbc.xml used? For
Sybase, there's no mapping with a java type of BigDecimal. Is that where
the problem lies?
Ciao,
Jonathan O'Connor
XCOM Dublin
Alexey Loubyansky <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02.08.2003 14:26
Please respond to jboss-user
To: "Jonathan.O'[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:
Subject: Re: [JBoss-user] Sybase type-mapping of NUMERIC(10,7) read in
as int
Hello Jonathan,
any stacktrace?
alex
Friday, August 01, 2003, 6:33:12 PM, Jonathan O'Connor wrote:
JOCxd> Hi,
JOCxd> I'm using JBoss 3.0.6, and I'm migrating from Oracle 9i to Sybase
12.0
JOCxd> One of my unit tests is failing because I have a column in a table
defined
JOCxd> as NUMERIC(10,7). When I write a value like 1.24, the DB gets 1.
JOCxd> Has anyone got any ideas? I tried adding in a mapping to
jbossjdbccmp.xml
JOCxd> for java.math.BigDecimal but that's no help.
JOCxd> Ciao,
JOCxd> Jonathan O'Connor
JOCxd> Development Manager
JOCxd> XCOM Dublin
JOCxd> Phone: +353 1 872 3305
JOCxd> Mobile: +353 86 824 9736
JOCxd> -------------------------------------------------------
JOCxd> This SF.Net email sponsored by: Free pre-built ASP.NET sites
including
JOCxd> Data Reports, E-commerce, Portals, and Forums are available now.
JOCxd> Download today and enter to win an XBOX or Visual Studio .NET.
JOCxd> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
JOCxd> _______________________________________________
JOCxd> JBoss-user mailing list
JOCxd> [EMAIL PROTECTED]
JOCxd> https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user