Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 38322 invoked from network); 4 Jul 2004 16:33:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Jul 2004 16:33:02 -0000 Received: (qmail 29908 invoked by uid 500); 4 Jul 2004 16:32:59 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 29850 invoked by uid 500); 4 Jul 2004 16:32:58 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 29821 invoked by uid 99); 4 Jul 2004 16:32:57 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received: from [212.67.96.160] (HELO msgdirector4.onetel.net.uk) (212.67.96.160) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sun, 04 Jul 2004 09:32:54 -0700 Received: from bolek.coachhouse (213-78-126-48.friaco.onetel.net.uk [213.78.126.48]) by msgdirector4.onetel.net.uk (MOS 3.4.6-GR) with ESMTP id BUN83126; Sun, 4 Jul 2004 17:32:45 +0100 (BST) Received: (Exim 3.35) #1 (Debian)) protocol: esmtp id 1Bh9ux-0008WM-00 ; Sun, 04 Jul 2004 17:32:39 +0100 Message-ID: <40E83127.6010900@numerixtechnology.de> Date: Sun, 04 Jul 2004 17:32:39 +0100 From: T E Schmitz Reply-To: mailreg@numerixtechnology.de User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: URGENT!! Optinanal foreign key column not deleting References: <001401c461be$e7facb70$d6d2c152@vjeran> In-Reply-To: <001401c461be$e7facb70$d6d2c152@vjeran> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I am not quite sure why criteria / doSelect should return a result while criteria / doDolete doesn't for the same values. But bear in mind that for doDelete and doUpdate "no hits" is not an error. Therefore no exception is thrown. In fact, you don't get any feedback at all. This in itself is a problem for some applications. You mention that you use "object" types rather than primitive. Have you tried using new Integer(95) as a Criteria parameter? > Criteria crit = new Criteria(); > crit.add(TmModelProfilePeer.MODEL_ID, 95); > List list = TmModelProfilePeer.doSelect(crit); > > and eveything works fine. But when I want to delete these rows by same > criteria : > Criteria crit = new Criteria(); > crit.add(TmModelProfilePeer.MODEL_ID, 95); > TmModelProfilePeer.doDelete(crit); > it doesn't work. No exception, just no deletion. ??!! -- Regards/Gru�, Tarlika Elisabeth Schmitz --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org