Re: Require assistance in Postgres + Hibernate : Error: java.math.BigInteger cannot be cast to java.math.BigDecimal

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: rob stone <floriparob(at)gmail(dot)com>
Cc: Vinodh NV <linktovinodh(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Require assistance in Postgres + Hibernate : Error: java.math.BigInteger cannot be cast to java.math.BigDecimal
Date: 2018-02-13 11:42:44
Message-ID: CA+bJJbyPRC=rnVf2m26LaNqFBZJjvwQpuFc3t=LQO3w_sGNcjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 13, 2018 at 12:39 PM, rob stone <floriparob(at)gmail(dot)com> wrote:
>> long count = ((BigDecimal)ic.get(“EB”)).longValue();
..
> The method is documented as:-
> public static BigDecimal valueOf(long val)

His problem seems to be the opposit, he does not have the long value
and wants it.

Francisco Olarte.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vikas Sharma 2018-02-13 13:32:23 Multiple postmasters running from same directory
Previous Message Francisco Olarte 2018-02-13 11:41:04 Re: Require assistance in Postgres + Hibernate : Error: java.math.BigInteger cannot be cast to java.math.BigDecimal