Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 64777 invoked from network); 20 Dec 2007 19:47:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Dec 2007 19:47:37 -0000 Received: (qmail 27715 invoked by uid 500); 20 Dec 2007 19:47:25 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 27701 invoked by uid 500); 20 Dec 2007 19:47:25 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 27690 invoked by uid 99); 20 Dec 2007 19:47:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2007 11:47:25 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.38.185] (HELO web51406.mail.re2.yahoo.com) (206.190.38.185) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Dec 2007 19:47:13 +0000 Received: (qmail 99020 invoked by uid 60001); 20 Dec 2007 19:47:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=i7+mcMiVArBxFLQxpnDtjqYikM77OXXJGoHCvTY7S4/N6LP+7ub7fPCp9TEglRs5bJLGe7LuDyb52N+FCy9qY7H7ztbXCNCCsScOL2t6Tv2yx3PqMrndT2u+fdh06hiTdQs2A5gOOk97lnGaOQdV2F9VD4bp5kXnSj+cwAu5ZAc=; X-YMail-OSG: Hbnp1IoVM1lYnF2vOzHfEwBzwdPmg9fshm7Qjio9C5NvqSCVNNkXBYl4p6n0LPNFI2i9Acay8xJoLLUXMJVqVNWKyDW9PHkilzrOYPU_15kX08_Ewuq.BK6e6_Lh Received: from [160.33.98.118] by web51406.mail.re2.yahoo.com via HTTP; Thu, 20 Dec 2007 11:47:04 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.158.1 Date: Thu, 20 Dec 2007 11:47:04 -0800 (PST) From: tyju tiui Subject: Re: Can't delete rows from DynaBean To: ddlutils-user@db.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-193378714-1198180024=:97846" Message-ID: <702885.97846.qm@web51406.mail.re2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-193378714-1198180024=:97846 Content-Type: text/plain; charset=us-ascii I found out why this was happening ... I'm testing with PostgreSQL which aparently doesn't handle resultSetMetadata very well. Luckily the creators of DdlUtils thought of this and wrote in the ability to pass in "query hints" which is essentially just an array of Table objects which DdlUtils uses to lookup columns and match them back to their respective tables when the resultSetMetadata fails to offer-up this info ... brilliant! Now I pass in my "query hints" and everything works blissfully. Ty ----- Original Message ---- From: tyju tiui To: ddlutils-user@db.apache.org Sent: Wednesday, December 19, 2007 1:11:30 PM Subject: Can't delete rows from DynaBean Hi, I'm trying to delete some records using DynaBeans returned from a 'platform.fetch()' call. The List returned is full of perfectly fine DynaBeans (as far as I can tell) but when I issue a 'platform.delete()' DdlUtils throws the following error: org.apache.ddlutils.dynabean.SqlDynaException: The dyna bean is not an instance of a SqlDynaClass at org.apache.ddlutils.dynabean.DynaClassCache.getDynaClass(DynaClassCache.java:135) at org.apache.ddlutils.model.Database.getDynaClassFor(Database.java:551) at org.apache.ddlutils.platform.PlatformImplBase.delete(PlatformImplBase.java:1923) at org.apache.ddlutils.platform.PlatformImplBase.delete(PlatformImplBase.java:1906) I looked at the code and I'm unsure how to properly get an instance of SqlDynaClass from a 'fetch' or 'query'? Any help would be appreciated. Thanks, Ty Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ --0-193378714-1198180024=:97846--