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: Thu, 30 Sep 2010 15:18:53 -0700 (PDT)
Message-ID: <1285885133705-3047745.post@n5.nabble.com> (raw)
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>


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: <property name="hibernate.query.substitutions">true
1, false 0</property> 

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



view thread (53+ messages)  latest in thread

Message-ID: <1285885133705-3047745.post@n5.nabble.com>
Permalink:  ../1285885133705-3047745.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1285885133705-3047745.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: <1285885133705-3047745.post@n5.nabble.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> <1285885133705-3047745.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