We havn't actually had much discussion of middlegen on this list (though it has come up a couple of times). This recent burst of activity is mainly in response to the thinking Max has been doing recently and I'm just kinda following up on his ideas.
I'd particularly like to know what Konstantin thinks about this stuff, since he is the one currently working on the Hibernate XDoclet module and perhaps he has the best idea of what its capabilities will be in the near future. Now something that occurred to me today is that *whichever* way we go, either Middlegen template or Codegenerator, it would be helpful for the generated source to contain XDoclet tags. (Currently CodeGenerator does NOT generate them.) However, I am still currently in favor of simplifying things to: >>>>>>>XDoclet>>>>>> >>>SchemaExport>>>> java + @tags hbm.xml SQL DDL <<<CodeGenerator<<<< <<<<<Middlegen<<<<< The the only leg of the roundtripping that is not fully reproduceable without user interaction is the DDL -> hbm.xml (ie. Middlegen) step. ----- Original Message ----- From: "Aslak Hellesøy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 3:28 AM Subject: [Hibernate] Middlegen and XDoclet marriage > Hi! > > I'm new on the Hibernate list, so I haven't followed your discussions about > XDoclet and Middlegen integration lately. -But I've seen your Wiki. As some > of you probably know already, Gavin has developed a Hibernate plugin for > Middlegen that should work with the recent XDoclet module for Hibernate > (which is in XDoclet's CVS and the recent 1.2b2 release). > > http://sourceforge.net/tracker/index.php?func=detail&aid=660628&group_id=360 > 44&atid=415992 > > This means we'll have: > > RDBMS -- Middlegen --> POJOs with @hibernate tags -- XDoclet --> hbm.xml > > (POJO = Plain Old Java Object = simple javabean style class) > > So basically you can start with a database, do some configurations in > Middlegen's GUI, and have the java code and hbm.xml files generated. > > Gavin and I have been discussing a different approach though: > > RDBMS -- Middlegen --> hbm.xml -- Hibernate's CodeGenerator --> POJOs > > Both approaches are a mix of bottom-up (you start with a database) + either > xml->java or java->xml. > > According to Gavin, Hibernate's CodeGenerator is more mature than XDoclet's > Hibernate module. However, his current Middlegen plugin advocates the > XDoclet approach (and not the CodeGenerator approach). > > So my question is: Where do we go from here? Which approach do _you_ prefer? > (Considering that this Hibernate/XDoclet/Middlegen marriage is still quite > young and untested). > > Cheers, > Aslak (Middlegen and XDoclet committer) > > --------------------------------------------------------------------- Never lose a fax again, receive faxes to your personal email account! Visit http://www.mbox.com.au/fax ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel