FW: boolean type - Mailing list pgsql-jdbc

From Nortje, Jacques
Subject FW: boolean type
Date
Msg-id FCB914ECE16DD4119A010800062793AD03997232@sietel.siemens.co.za
Whole thread Raw
List pgsql-jdbc

-----Original Message-----
From: Nortje, Jacques
Sent: 04 March 2002 11:27
To: pgsql-jdbc@postgresql.org
Subject: boolean type



I use the Java EJB2.0 standards for creating entitiy beans which are
persisted to a PostGreSQL database by the container.  I create an entity
bean with a boolean attirbute 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 how can I solve this problem ?

Thanks and regards.

Jacques Nortjé
Technology Development : MIT
Siemens Telecommunications (Pty) Ltd
Waltloo
South Africa
0184

Tel:    +27 12 352 5258
Fax:    +27 12 352 5775
Mailto: JacquesN2@Siemens.co.za



pgsql-jdbc by date:

Previous
From: Chantal Ackermann
Date:
Subject: Re: Postgress 7.2 and j2sdk 1.4.0
Next
From: "Jose Luis LG"
Date:
Subject: Re: Passing values to a plpgsql functions