Skip site navigation (1) Skip section navigation (2)

Re: hibernate nativequery and uuid

From: "Douglas McNaught" <doug(at)mcnaught(dot)org>
To: Andrew <archa(at)pacific(dot)net(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: hibernate nativequery and uuid
Date: 2008-07-31 22:46:34
Message-ID: 5ded07e00807311546yd0a26b9q286b6bd0d5ff9951@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
On Thu, Jul 31, 2008 at 5:57 PM, Andrew <archa(at)pacific(dot)net(dot)au> wrote:

> The only relevant thing I have been able to find relating to it is
> http://archives.postgresql.org/pgsql-bugs/2007-12/msg00061.php which
> suggests adding a ::uuid cast to the parameter.
>
> However, when doing that, hibernate thinks that it is a named parameter and
> complains.
> org.hibernate.QueryException: Not all named parameters have been set

Have you tried using the alternative (and more standard) CAST syntax
instead?  Perhaps that won't confuse Hibernate.

-Doug

In response to

Responses

pgsql-general by date

Next:From: Ivan Sergio BorgonovoDate: 2008-07-31 23:01:12
Subject: Re: eliminating records not in (select id ... so SLOW?
Previous:From: Lennin CaroDate: 2008-07-31 21:59:29
Subject: Re: eliminating records not in (select id ... so SLOW?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group