db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tyju tiui <jckdnk...@yahoo.com>
Subject Can't delete rows from DynaBean
Date Wed, 19 Dec 2007 18:11:30 GMT
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.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message