Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)

From: stagirus <mamasa(at)stagirus(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Date: 2010-09-30 22:18:53
Message-ID: 1285885133705-3047745.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc


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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Mark Kirkwood 2010-10-01 02:43:17 src/tools/fsync/test_fsync.c does not compile
Previous Message Robert Haas 2010-09-30 22:11:58 Re: Unexpected omission of tables with duplicate names across schemas

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2010-10-01 03:09:06 Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Previous Message Mark Kirkwood 2010-09-30 22:09:33 Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)