Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 75740 invoked from network); 12 Aug 2005 13:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Aug 2005 13:40:27 -0000 Received: (qmail 54121 invoked by uid 500); 12 Aug 2005 13:40:26 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 53893 invoked by uid 500); 12 Aug 2005 13:40:25 -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 53880 invoked by uid 99); 12 Aug 2005 13:40:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 06:40:25 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [63.151.42.144] (HELO provima.com) (63.151.42.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 06:40:45 -0700 Received: from [10.40.10.105] [65.107.244.34] by provima.com with ESMTP (SMTPD32-8.15) id A29F97D00A4; Fri, 12 Aug 2005 09:22:39 -0400 Message-ID: <42FCA6C0.8060303@provima.com> Date: Fri, 12 Aug 2005 09:40:16 -0400 From: Trey Long User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: getDate() References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------090402040606040605020504" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------090402040606040605020504 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From my limited view it seems that it would be pretty difficult to support some if not all DB functions as the database would support them. It would at least take a trip to the database which would be... cumbersome. Thomas Fischer wrote: > > >You are right, default values with sql functions in them are not supported >by Torque. This is known, there is also an issue in scarab for this. >I should look into it some time whether this can be fixed. > > Thomas > >Trey Long schrieb am 11.08.2005 15:12:59: > > > >>I am using the following: >> >>Torque Version: 3.2-rc1 >>Using: ANT, MSSQL >> >>I was able to get around the problem but I believe I now know what the >>issue was. Inside of the generated schema it was calling a function >>'getDate()' that really didn't exist anywhere. That's because I used the >>default value of (getDate()) in the MSSQL table schema. So I imagine >>that functions don't carry over so well as defaults in table schema >>while using torque. >> >>Thomas Fischer wrote: >> >> >> >>> >>>Hi, >>> >>>to help you with this, some more information would be needed >>>- the part of the schema which caused the problem >>>- the version of Torque you are using >>>- a relevant snippet of generated code around BaseQuestionnaire.java:45 >>>where the comile error occurs. >>> >>> Thomas >>> >>>Trey Long schrieb am 08.08.2005 18:11:20: >>> >>> >>> >>> >>> >>>>I am trying to compile the Torque generated classes and I am running >>>>into a problem with a getDate() method. The following error is >>>> >>>> >returned: > > >>>>build: >>>> [javac] Compiling 51 source files to C:\...\web\WEB-INF\classes >>>> [javac] C:\...\BaseQuestionnaire.java:45: cannot find symbol >>>> [javac] symbol : method getdate() >>>> [javac] location: class com.provima.pcsw.mssql.BaseQuestionnaire >>>> [javac] private Date created = new Date(getdate()); >>>> [javac] ^ >>>> [javac] Note: Some input files use unchecked or unsafe operations. >>>> [javac] Note: Recompile with -Xlint:unchecked for details. >>>> [javac] 1 error >>>> >>>>Any quick advice would be nice. I don't understand the purpose of this >>>>method or how to regen the classes in another way where this error >>>> >>>> >won't > > >>>>crop up. I am loathe to edit it out of the class because I don't know >>>>the implications and I don't want to have to edit it every time the >>>>Object Model is built. >>>> >>>>Thanks, -Trey >>>> >>>>--------------------------------------------------------------------- >>>>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >>>>For additional commands, e-mail: torque-user-help@db.apache.org >>>> >>>> >>>> >>>> >>>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >>>For additional commands, e-mail: torque-user-help@db.apache.org >>> >>> >>> >>> >>> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >For additional commands, e-mail: torque-user-help@db.apache.org > > > --------------090402040606040605020504--