Re: Require assistance in Postgres + Hibernate : Error:java.math.BigInteger cannot be cast to java.math.BigDecimal - Mailing list pgsql-general

From Francisco Olarte
Subject Re: Require assistance in Postgres + Hibernate : Error:java.math.BigInteger cannot be cast to java.math.BigDecimal
Date
Msg-id CA+bJJbyPRC=rnVf2m26LaNqFBZJjvwQpuFc3t=LQO3w_sGNcjQ@mail.gmail.com
Whole thread Raw
In response to Re: Require assistance in Postgres + Hibernate : Error:java.math.BigInteger cannot be cast to java.math.BigDecimal  (rob stone <floriparob@gmail.com>)
Responses Re: Require assistance in Postgres + Hibernate : Error:java.math.BigInteger cannot be cast to java.math.BigDecimal  (Vinodh NV <linktovinodh@gmail.com>)
List pgsql-general
On Tue, Feb 13, 2018 at 12:39 PM, rob stone <floriparob@gmail.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.


pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: Require assistance in Postgres + Hibernate : Error:java.math.BigInteger cannot be cast to java.math.BigDecimal
Next
From: Vikas Sharma
Date:
Subject: Multiple postmasters running from same directory