Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D36011337BB8 for ; Tue, 5 Oct 2010 20:50:01 -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 51676-04 for ; Tue, 5 Oct 2010 23:49:54 +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 28C6C1337B9D for ; Tue, 5 Oct 2010 20:49:53 -0300 (ADT) Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P3HGa-0006zP-Qu for pgsql-jdbc@postgresql.org; Tue, 05 Oct 2010 16:49:52 -0700 Date: Tue, 5 Oct 2010 16:49:52 -0700 (PDT) From: stagirus To: pgsql-jdbc@postgresql.org Message-ID: <1286322592828-3200613.post@n5.nabble.com> In-Reply-To: <0FEDB42A-1C93-411C-853B-6CC27A4FBE44@cha.com> References: <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> <1285995027439-3073605.post@n5.nabble.com> <1286275310520-3199236.post@n5.nabble.com> <0FEDB42A-1C93-411C-853B-6CC27A4FBE44@cha.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: 201010/47 X-Sequence-Number: 21015 Jeff: Your research and the recommendation is viable. The conclusion was Java boolean and DB char(1) are interoperable. By the same token, why wasn't Java boolean and DB smallint interoperable? Is it the Hibernate issue (Dialect?), JDBC driver issue, or the DB Engine issue? In our case, it works with Oracle DB indicates to me that we are missing something. Or I am just missing something. I am afraid the boolean to char(1) might run into similar issues with other databases. Just because it worked with DB2 and Postgres does not mean it would work with other DBs. We are already noticing such incompatibilities though our solution worked with Oracle. Thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Re-BUGS-Mapping-Hibernate-boolean-to-smallint-Postgresql-tp2855367p3200613.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.