From: "Aslak Helles�y" <[EMAIL PROTECTED]> > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of ROSSEL > > Olivier > > Druid has almost that behaviour, and in my scope, I want to provide a > > static class to pass from one data model to the other, so both apps > > can be merged. > > > > I think the best would be to move Middlegen's logic for reading and building > the data model into Commons SQL. Then Middlegen and Druid would just use > Commons SQL as a core library. If a merger with Commons SQL is not possible, > you should still be able to use the core part of Middlegen in Druid.
Hopefully reuse of Commons SQL should be really easy - either just using the same XML format for describing a relational data model or using the Commons SQL beans to describe the same model. Then if you want to import or export a relational model you just have a simple XML or bean model to work with. Then once that integration is done you can reuse the tools in Commons SQL such as to auto-generate the DDL for various different databases, or a siimple DynaBean API to work with the database or tools for performing schema migration (e.g. generation of alter table scripts etc). So really all Commons SQL is trying to do is just be a common reusable SQL related tools that are quite independent of where the model comes from, what persistence mechanism is used or the API the code uses to work with data. Its explicitly designed to be technology agnositc and real easy to just reuse as Ant tasks or via Jelly. James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
