Re: hibernate nativequery and uuid

From: Andrew <archa(at)pacific(dot)net(dot)au>
To: Douglas McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: hibernate nativequery and uuid
Date: 2008-07-31 23:03:35
Message-ID: 489244C7.7070206@pacific.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yeah, tried that, but get the following:

org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111

Thanks for the suggestion though.

Douglas McNaught wrote:
> 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

Browse pgsql-general by date

  From Date Subject
Next Message Andrew 2008-07-31 23:10:22 Re: hibernate nativequery and uuid
Previous Message Ivan Sergio Borgonovo 2008-07-31 23:01:12 Re: eliminating records not in (select id ... so SLOW?