Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0B7DD632333 for ; Fri, 9 Apr 2010 11:37:31 -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 14076-02 for ; Fri, 9 Apr 2010 14:37:11 +0000 (UTC) X-Greylist: from auto-whitelisted 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 1AB2E6328BE for ; Fri, 9 Apr 2010 11:37:20 -0300 (ADT) Received: from [192.168.254.60] (unknown [192.168.254.60]) by mail.serhmatica.com.br (Postfix) with ESMTPA id 928F26C4576 for ; Fri, 9 Apr 2010 11:13:53 -0300 (BRT) Message-ID: <4BBF3B9A.9070607@serhmatica.com.br> Date: Fri, 09 Apr 2010 11:37:14 -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="------------020905000003010105050008" X-Serhmatica-MailScanner-Information: Please contact the ISP for more information X-Serhmatica-MailScanner-ID: 928F26C4576.A80A0 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/12 X-Sequence-Number: 20423 This is a multi-part message in MIME format. --------------020905000003010105050008 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. --------------020905000003010105050008 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. --------------020905000003010105050008--