Boolean type

From: "Nortje, Jacques" <JacquesN2(at)siemens(dot)co(dot)za>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Boolean type
Date: 2002-03-05 05:30:08
Message-ID: FCB914ECE16DD4119A010800062793AD039AED63@sietel.siemens.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I use the Java EJB2.0 standards for creating entitiy beans which are
persisted to a PostGreSQL database. I create an entity
bean with a boolean attribute with value 'true'. In the database the record
is inserted and the field value is set to 1. When I retrieve the entity bean
attributes with a findByPrimaryKey() finder method, the getAttribute()
result is 'false' for the inserted 'true' value. Is this a type
mapping/conversion setting that needs to be set for the application server
(JBoss 3.0-alpha) or does it have to do with the JDBC driver I am using
( I use the driver that came with the Cygwin package, ie postgresql.jar)?

Thanks and regards.

Jacques Nortjé

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Yousry Abdallah 2002-03-05 07:48:40 Re: [JDBC] problem about postgresql and jdbc
Previous Message Bruce Momjian 2002-03-05 04:12:23 Re: Status of outstanding patches