Oh oh oh I like this idea....
JD -----Original Message----- From: news [mailto:[EMAIL PROTECTED] Behalf Of Sylvain Wallez Sent: Friday, October 31, 2003 6:25 AM To: [EMAIL PROTECTED] Subject: [RT] Direct Form->SQL mapping through OJB and DynaBeans Hi, Some people to which I demonstrated Woody and Flowscript asked me how we can directly map forms to a database. Yeah, I know that architecturally having intermediate domain objects is better, but it seems a bit overkill when what you need is just a simple CRUD front-end to a database and have no additional logic. Writing a SQL binding for forms seems a complicated beast to me (maybe I'm wrong as I'm not very fluent in SQL), so I was thinking of using tools that would to the dirty work for me. And here comes (Antonio, you'll be happy!!) OJB, which AFAIK can persist DynaBeans [1]. So what about adding a getBean() to the widget interface that would return a DynaBean wrapper of the form widgets? A simple OJB mapping file and voil�, persistant forms! What do you think? Sylvain [1] http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/beanutils /DynaBean.html -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com
