[Opensource] AutoDBObject

Michael Rimov rimovm at centercomp.com
Mon Jul 29 19:50:47 PDT 2002


Salvador & Aime,

Yes that is definitely a significant bug in AutoDBObject and my making 
DBObject.getDef() final isn't helping either.   If someone can make a 
proposed fix,  I'll gladly test and include it.  Otherwise,  I'll have to 
put it on the bug list for inclusion in either a 4.11 or 4.2 release due to 
time limitations.

Thank you for summarizing the problem so well!

  -Mike
>Date: Mon, 28 Jul 2002 23:40:00
>To: opensource at jcorporate.com
>Subject: RE: [Opensource] AutoDBObject
>From: "Salvador Cadena" <salvador.cadena at isol.com.mx>
>Hi,
>I went over all the code, and found the same thing,
>Since the DBObject uses the class name to register
>The definition of any new DBObject, and this information
>Is static for the class, once the getDef() method receives
>The class name (AutoDBObject)It saves the structure in the
>Field pointing to DBObjectDef class. It seems you can only have
>One AutoDBObject per session.
>I haven't tried this, but maybe if you create one DBObject that
>extends the AutoDBObject class, you could have different class names
>For each AutoDBObject, so, you will have one definition for
>Each one. After all, you still will saving the SetupField method
>For each DBObject, since the method SetTargetTable do it for you.
>I hope this helps.
>Good Luck!
>Salvador Cadena
>salvador.cadena at isol.com.mx
>Tels. (52) 55 5523 3962
>        (52) 55 5523 6992
>Mobil 044 55 85804207
>
>
>-----Original Message-----
>From: opensource-admin at jcorporate.com
>[mailto:opensource-admin at jcorporate.com] On Behalf Of BSC
>Sent: Sábado, 27 de Julio de 2002 09:53 p.m.
>To: opensource at jcorporate.com
>Subject: [Opensource] AutoDBObject
>
>Is anyone using AutoDBObject?  I am running 4.02 and when I call DBMaint
>with AutoDBObject it doesn't work the 2nd time around (when a different
>table is requested the 2nd time with the &table parameter).  It looks
>like the DBObjectDef is set on the 1st request but then not reset to
>reflect the meta data of the table in the 2nd request.  This would be
>fine for any other DBObject but not AutoDBObject??  Anyone run into
>this? Am I missing something here? Here's the url I used:
>http://localhost/DBMaint.do?dbobj=com.jcorporate.expresso.core.dbobj.Aut
>oDBObject&table=event_dates&state=List
>Thanks,
>---
>Aime
>
>
>
>
>
>_____________________________________________________
>Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads and
>NoTaglines --> LYCOS MAIL PLUS.
>http://www.mail.lycos.com/brandPage.shtml?pageId=plus
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list