From: Max R. A. <ma...@eo...> - 2003-01-03 20:31:43
|
----- Original Message ----- From: "Aslak Hellesoy" <asl...@ne...> To: "One Ovthafew" <1ov...@mb...>; <hib...@li...> Sent: Friday, January 03, 2003 6:10 PM Subject: RE: [Hibernate] Middlegen and XDoclet marriage > > > >>>>>>>XDoclet>>>>>> >>>SchemaExport>>>> > > java + @tags hbm.xml SQL DDL > > <<<CodeGenerator<<<< <<<<<Middlegen<<<<< > > > > Oh, the beauty! Before I saw Gavin's beautifull drawing I also viewed both approaches as legitimate. But I wanted BOTH possibilities, because of two things: 1. I like the codegenerator and the hbm.xml -> java approach 2. I like XDoclet and saw the ability to provide an java+@tags approach for the beginner and intermediate user would be GREAT :) But with the beautifuly drawing I saw symmetry (which is good :) The only real "issue" is that if you are doing Middlegen->hbm.xml->java@tags with the purpose of using the java@tags version to do java@tags->hbm.xml, then it seems rather "redundant".... but then again, the XDoclet generation in the code generator would ofcourse be optional....hey, i got to think....with my local version of hbm2java (which the codegenerator is called now :) we got the <meta attribute="description"></meta>, which is an ideal place for MiddleGen to place it's "additional" XDoclet tags...if that is in any way advantageous... /max > > > > > The the only leg of the roundtripping that is not > > fully reproduceable without user interaction is the > > DDL -> hbm.xml (ie. Middlegen) step. > > > > Middlegen can indeed be run without user interaction. Just say gui="false" > to the middlegen task. If you run it without the gui, it will use defaults > or look at the preferences file (which will exist if Middlegen has been run > previously). > > http://boss.bekk.no/boss/middlegen/ant/index.html#gui > http://boss.bekk.no/boss/middlegen/ant/index.html#prefsdir > > Aslak > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |