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

Migration to Hibernate 3.5 final

From: Rafael Felix <felix(at)serhmatica(dot)com(dot)br>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Migration to Hibernate 3.5 final
Date: 2010-04-09 14:37:14
Message-ID: 4BBF3B9A.9070607@serhmatica.com.br (view raw or flat)
Thread:
Lists: pgsql-jdbc
I´ve an application running in hibernate 3.3.2 and the applications 
works fine, with all blob fields using oid (byte[] in java),
Migrating to hibernate 3.5 all blob fields not work anymore, and the 
server log shows

ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: column 
"preferencia" is of type oid but expression is of type bytea

But I'm cann't change the tables struct for use bytea instead oid, 
because I lost all data.
How I can solve it? Or How can I migrate de OID field to bytea field.


regards
-- 
*Rafael Guzi Felix da Silva*
*Desenvolvedor de Sistemas*
Serhmatica Sistemas e Serviços de Informática <http://www.serhmatica.com.br>
Telefone: (49) 3566 1303

-- 
Serhmatica
visite: www.serhmatica.com.br
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.

Responses

pgsql-jdbc by date

Next:From: Craig RingerDate: 2010-04-10 11:36:42
Subject: Re: Migration to Hibernate 3.5 final
Previous:From: Rafael FelixDate: 2010-04-09 14:26:01
Subject: Migration to Hibernate 3.5 final

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