Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

JDBC BigDecimal Problem. Castor - WebLogic - Sybase

Thread view: 
davo_java - 16 Jun 2005 22:42 GMT
Hi there!

I'm using Castor V. 0.9.4.3 as Persistence Framework, a Sybase Database
(JConnect JDBC), and BEA WebLogic 8.1.

The problem is: I have several fields defined as NUMERIC(20,2) in DB
Tables. Those fields are defined in Castor Mapping file as:

     <field name="tasa" type="big-decimal">
        <sql name="tasa" type="numeric"  />
     </field>

In addition, debuggin my domain objects and business methods, all
object members are defined as BigDecimal with scale=2 and its values
are right, but when the crate(object) method executes, a number like
145.56 is stored as 145.00 in DB.

Can anybody help me?

Thanks a lot!

Dave
davo_java - 23 Jun 2005 19:33 GMT
Does anybody know about any bug realted with Sybase JDBC driver and
BigDeciaml data type?

The problem seems to be a scale loss when Castor is binding SQL query
(INSERT/UPDAET) parameters. (SetObject().... GetObject()... )

Thanks!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.