It's cool idea and you know I've been advocating it for a long time.
That's Nirvana ;-)

Imho:
Code meta model: xjavadoc
Db meta model: commons-sql + some stuff from middlegen
Uml meta model: probably a simpler model over MAF (something more
diff-able with xjavadoc I mean)

There are other models we can throw in too: a soap-envelopeable mapping
of an object, or an xml mapping (like castorxml). What's important is
that you always map from source code + @tags to something external and
vice versa, not from db schema to uml for example, code sits there
always because it's the design in the code and you can always express it
in code and @tags. So what we need is defining ToCode and FromCode
interfaces and let it work on all elements of our meta model: A
DBTableToCode diff-er which aggregates DBColumnToCode diff-ers. Simple
command/composite objects. With command it can be undoable too: undo
new-attribute which resulted in creating a new column in db. Needless to
say we won't need a complete rerun of the synchronizer (ejbdoclet for
example) to get the intf/db/whatever, the fine grained Diff-er can work
on a mini unit of work. I'm starting to think that we need more fine
grained control over all elements of the generation process. I've
already talked about a method-overriding dilemma with Aslak. Raw
Velocity templates have no sense of outputted code, is it a method I'm
outputting? Is it an overridden one? I just output it and forget about
it. I really like the idea of moving many of the template stuff to
normal command-like java codes. Look at what Rickard does with the
command pattern, basically all his fireworks are: commands and
aspects/introspectors.

So as you can see I'm proposing something which is even more radical
than XDoclet2 itself. What do you think?

Ara. 

> -----Original Message-----
> From: Aslak Hellesøy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 2:56 AM
> To: [EMAIL PROTECTED]; middlegen-
> [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; Ara Abrahamian
> Subject: db<->code<->uml?
> 
> Hi!
> 
> Matthias Bohlen (author of UML2EJB - http://uml2ejb.sf.net/) wrote
today:
>
http://sourceforge.net/mailarchive/forum.php?thread_id=1181378&forum_id=
10
> 15
> 4
> 
> And Ara Abrahamian followed up with this:
>
http://roller.anthonyeden.com/page?pageid=065218131008103306542336000026
&u
> se
> rname=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: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to