Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id BA31F633BB4 for ; Fri, 9 Apr 2010 11:35:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 13634-08 for ; Fri, 9 Apr 2010 14:34:59 +0000 (UTC) X-Greylist: delayed 00:08:57.141645 by SQLgrey-1.7.6 Received: from mail.serhmatica.com.br (200-101-192-3.fnsce7004.e.brasiltelecom.net.br [200.101.192.3]) by mail.postgresql.org (Postfix) with ESMTP id 4E5E8632710 for ; Fri, 9 Apr 2010 11:35:08 -0300 (ADT) Received: from [192.168.254.60] (unknown [192.168.254.60]) by mail.serhmatica.com.br (Postfix) with ESMTPA id 18C766C4576 for ; Fri, 9 Apr 2010 11:02:40 -0300 (BRT) Message-ID: <4BBF38F9.3080708@serhmatica.com.br> Date: Fri, 09 Apr 2010 11:26:01 -0300 From: Rafael Felix User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Migration to Hibernate 3.5 final Content-Type: multipart/alternative; boundary="------------060307080400040708030801" X-Serhmatica-MailScanner-Information: Please contact the ISP for more information X-Serhmatica-MailScanner-ID: 18C766C4576.A87CE X-Serhmatica-MailScanner: Found to be clean X-Serhmatica-MailScanner-From: felix@serhmatica.com.br X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.365 tagged_above=-10 required=5 tests=HTML_MESSAGE=0.001, RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=0.001 X-Spam-Level: X-Archive-Number: 201004/13 X-Sequence-Number: 20424 This is a multi-part message in MIME format. --------------060307080400040708030801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 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. --------------060307080400040708030801 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
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. --------------060307080400040708030801--