| From: | Vinodh NV <linktovinodh(at)gmail(dot)com> |
|---|---|
| To: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
| Cc: | rob stone <floriparob(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 15:14:18 |
| Message-ID: | CAMBHpRh+ykMU49UdhxdGTTJmvAvXVj6=KJZZ=0FSSa7_YN3ryQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Thanks for the update Francisco. I had one more query:
In Oracle the syntax for calling a stored procedure is
Session sess = (Session) entityManager.getDelegate();
sess.createSQLQuery("{ call reset() }").executeUpdate();
Can you please let me know if the below equivalent for postgres is correct?
Session sess = (Session) entityManager.getDelegate();
sess.createSQLQuery("select reset()");
Regards,
Vinodh
On Tue, Feb 13, 2018 at 5:12 PM, Francisco Olarte <folarte(at)peoplecall(dot)com>
wrote:
> 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.
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2018-02-13 15:50:32 | Re: Multiple postmasters running from same directory |
| Previous Message | Laurenz Albe | 2018-02-13 13:42:13 | Re: Multiple postmasters running from same directory |