Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 10454 invoked from network); 15 May 2005 20:12:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 May 2005 20:12:16 -0000 Received: (qmail 87465 invoked by uid 500); 15 May 2005 20:16:49 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 87382 invoked by uid 500); 15 May 2005 20:16:48 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 86874 invoked by uid 99); 15 May 2005 20:16:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of piechutm@wp.pl designates 212.77.101.1 as permitted sender) Received: from smtp.wp.pl (HELO smtp.wp.pl) (212.77.101.1) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 15 May 2005 13:16:44 -0700 Received: (wp-smtpd smtp.wp.pl 20159 invoked from network); 15 May 2005 22:11:53 +0200 Received: from japi002.net.autocom.pl (HELO [127.0.0.1]) (piechutm@[213.134.164.65]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with SMTP for ; 15 May 2005 22:11:53 +0200 Message-ID: <4287AD00.90708@wp.pl> Date: Sun, 15 May 2005 22:11:44 +0200 From: Piechu User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: Problem with BOOLEAN fields References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-WP-AV: skaner antywirusowy poczty Wirtualnej Polski S. A. X-WP-SPAM: NO AS1=NO(Body=1 Fuz1=1 Fuz2=1) AS2=NO(0.971005) AS3=NO AS4=NO X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Thanks. But where can I find information about which Torque type is an equivalent for the type from database ? is there any rule. Another problem is - when I used type "CLOB" I've got BUILDING FAILED message caused in *.jelly - and it's probably something wrong with Torque types. What should I use for Text filed in database and is there any equivalent type for type Money in database? And last thing - should schema.xml file describe whole database - or if some things are programmed in database, such as auto numeration for primary keys, unique fields, default values - should it be also included in schema.xml file? If not - how should I mark a primary key which is auto-numeration field? Greetings Jakub Piechnik Thomas Fischer wrote: > > >Hi, > >Boolean is not a Torque type. The type in the schema xml must be declared >in the >dtd, this is > > BIT | TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT >| REAL | NUMERIC | DECIMAL | CHAR | VARCHAR | LONGVARCHAR >| DATE | TIME | TIMESTAMP | BINARY | VARBINARY | LONGVARBINARY >| NULL | OTHER | JAVA_OBJECT | DISTINCT | STRUCT | ARRAY >| BLOB | CLOB | REF | BOOLEANINT | BOOLEANCHAR >| DOUBLE > > >For Booleans, use BIT, BOOLEANINT, or BOOLEANCHAR > > Thomas > >"Piechu Piechu" schrieb am 15.05.2005 15:00:02: > > > >>Hello >> >>I'm rather new to Torque, so maybe my problem seems very easy, but I >>haven't any idea how to sole it. >> >>I've created a schema file with my database description. I have >>there few fields that are pointed as a BOOLEAN type. After succesful >>build using Maven, when I put all classes to Eclipse - there are a >>lot of errors with fields which were pointed as Boolean type. These >>errors are for example: >>-> private int clubDeleted = new int(false); >>/* >> Where in schema file was: >> > type="BOOLEAN" >> default="false"/> >>*/ >>-> obj.setClubDeleted(row.getValue(offset + 2).$col.VillageMethod); >>/* >> Eclipse doesn't recognize the '$col' (it says "$col cannot be >>resolved or is not a field) - the same occurs with every fields that >>was pointed as BOOLEAN type >>*/ >> >>They only occure in both Base* and Base*Peer files. >>I'm using JDBC driver -> postgresql-8.1dev-400.jdbc3.jar, java 1. >>5_02 and torque 3.1.1 >> >>Greetings >> >>Jakub Piechnik >> --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org