pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: stagirus <mamasa@stagirus.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Date: Tue, 5 Oct 2010 16:49:52 -0700 (PDT)
Message-ID: <1286322592828-3200613.post@n5.nabble.com> (raw)
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>
	<AANLkTi=wYc=JOcXUY4ZmrLjYJfsv9d-iy82bUt9hsTiW@mail.gmail.com>
	<1286275310520-3199236.post@n5.nabble.com>
	<0FEDB42A-1C93-411C-853B-6CC27A4FBE44@cha.com>


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-tp2...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.



view thread (53+ messages)  latest in thread

Message-ID: <1286322592828-3200613.post@n5.nabble.com>
Permalink:  ../1286322592828-3200613.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1286322592828-3200613.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mamasa@stagirus.com
  Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
  In-Reply-To: <1286322592828-3200613.post@n5.nabble.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> <AANLkTi=wYc=JOcXUY4ZmrLjYJfsv9d-iy82bUt9hsTiW@mail.gmail.com> <1286275310520-3199236.post@n5.nabble.com> <0FEDB42A-1C93-411C-853B-6CC27A4FBE44@cha.com> <1286322592828-3200613.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox