Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E688C1337B83 for ; Sat, 2 Oct 2010 01:50:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 21550-05 for ; Sat, 2 Oct 2010 04:50:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id D6AA21337B82 for ; Sat, 2 Oct 2010 01:50:28 -0300 (ADT) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P1u3H-0006Cw-EN for pgsql-jdbc@postgresql.org; Fri, 01 Oct 2010 21:50:27 -0700 Date: Fri, 1 Oct 2010 21:50:27 -0700 (PDT) From: stagirus To: pgsql-jdbc@postgresql.org Message-ID: <1285995027439-3073605.post@n5.nabble.com> In-Reply-To: <4CA6929B.5050105@postnewspapers.com.au> References: <1285762010765-3005405.post@n5.nabble.com> <4CA338F8.80902@opencloud.com> <4CA499DB.8000807@postnewspapers.com.au> <4CA4F536.5050704@opencloud.com> <1285880740264-3047671.post@n5.nabble.com> <4CA503A2.7010706@opencloud.com> <1285883402563-3047721.post@n5.nabble.com> <4CA55A9E.80700@postnewspapers.com.au> <1285971439496-3073409.post@n5.nabble.com> <4CA6929B.5050105@postnewspapers.com.au> Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201010/18 X-Sequence-Number: 20986 Of course my very first post on this topic indicated that we were looking for a solution for a problem with booleans. It took this long for all of us to reach a conclusion that the business of type mappings are handled by Hibernate. The following dialect class/API clearly states it. http://ajava.org/online/hibernate3api/org/hibernate/dialect/PostgreSQLDialect.html#toBooleanValueString(boolean) Oliver did refer to Hibernate Dialect. Not very clear though. So it is becoming evident that the types can be managed within Hibernate API or configurations. Overriding just the above API might suffice. I wish you guys have pointed me to this earlier. I am good. thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Re-BUGS-Mapping-Hibernate-boolean-to-smallint-Postgresql-tp2855367p3073605.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.