Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 78F301337B4B for ; Thu, 30 Sep 2010 19:19:30 -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 61047-02-2 for ; Thu, 30 Sep 2010 22:18:55 +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 E4B8B1337B56 for ; Thu, 30 Sep 2010 19:18:54 -0300 (ADT) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P1RSn-0004O1-My for pgsql-jdbc@postgresql.org; Thu, 30 Sep 2010 15:18:53 -0700 Date: Thu, 30 Sep 2010 15:18:53 -0700 (PDT) From: stagirus To: pgsql-jdbc@postgresql.org Message-ID: <1285885133705-3047745.post@n5.nabble.com> In-Reply-To: <4CA50A6F.4080501@opencloud.com> References: <1285716712781-2916249.post@n5.nabble.com> <4CA28CCB.5020400@opencloud.com> <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> <4CA50A6F.4080501@opencloud.com> 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: 201009/98 X-Sequence-Number: 20968 Yes. we will try the following two options. 1. Operator overloading - add a suitable implicit cast on the backend side from boolean -> smallint (not sure if this works, haven't looked at the details) 2. Hibernate query subs: true 1, false 0 I already indicated earlier these two are viable options for us. It might take sometime before I can post the update. Thank you for your help. See you. Best wishes. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Re-BUGS-Mapping-Hibernate-boolean-to-smallint-Postgresql-tp2855367p3047745.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.