Re: hibernate nativequery and uuid - Mailing list pgsql-general

From Douglas McNaught
Subject Re: hibernate nativequery and uuid
Date
Msg-id 5ded07e00807311546yd0a26b9q286b6bd0d5ff9951@mail.gmail.com
Whole thread Raw
In response to hibernate nativequery and uuid  (Andrew <archa@pacific.net.au>)
Responses Re: hibernate nativequery and uuid
List pgsql-general
On Thu, Jul 31, 2008 at 5:57 PM, Andrew <archa@pacific.net.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

pgsql-general by date:

Previous
From: Andrew
Date:
Subject: hibernate nativequery and uuid
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: eliminating records not in (select id ... so SLOW?