Me me! I have an idea!
Its the following:
- this days, every metadata seems to have its XML representation (Database
schema with the Jakarta SQL project, XMI for UML, and only XJavadoc is
missing its XML representation but it's only a matter of time)
So XML is the model of choice for representing internally and storing the
metadata in this bus.
Then the db <--> code <--> uml becomes:
Db <--> XML for Db schema <--> XML for XJavadoc <---> XMI
|
|
Code
UML
Now things are simpler: we have already an open source project that manages
all those transformations: Cocoon and its pipeline model for managing the
transformations.
Some transformations, for example XML for Db schema <--> XML for XJavadoc
require some user intervention, so we need a GUI like Middlegen to let the
user customize the rules for those transformations, and store the user
choices into some kind of knowledge base (the existing preferences for
Middlegen will do the job).
That should work well for static generation, where you take for example an
existing database and generate all the code from it, but what about
incremental generation, where user writes some code for example and you
except the database schema to be updated?
Here, we need a repository for storing the previous versions for the
metadatas at all levels. Good news, it's easy, we just store the XML.
Then we run for example XJavadoc on the changed code, that produces a new
XML metadata represenatation, then we run a XML diff betwen the old and the
new metadatas (there is a XML diff project in alphaworks), then that's were
we need more thinking, because the idea is to propagate the XML diff to all
XML representations, but i don't think Cocoon supports things like that now.
My .2euros
Ludovic.
----- Original Message -----
From: "Aslak Hellesøy" <***@netcom.no>
To: <middlegen-***@lists.sourceforge.net>;
<middlegen-***@lists.sourceforge.net>
Cc: <***@mbohlen.de>; "Ara Abrahamian" <***@yahoo.com>
Sent: Tuesday, October 15, 2002 1:26 AM
Subject: [Middlegen-devel] db<->code<->uml?
http://sourceforge.net/mailarchive/forum.php?thread_id=1181378&forum_id=1015
http://roller.anthonyeden.com/page?pageid=065218131008103306542336000026&use
Post by Aslak Hellesøyrname=ara_e
I'm curious to hear what you Middlegen users out there think about this bus
thingy. I think it's a very good idea, and Middlegen/XDoclet/UML2EJB are all
dynamic projects that could nicely achieve the described goal if we agree on
a way to do this. Good and bad ideas are welcome!
Regards,
Aslak
http://www.freeroller.net/page/rinkrank
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-devel mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-devel