Middlegen now supports Hibernate
I saw this on the Middlegen mailing list this afternoon:
I have created a Hibernate plugin for Middlegen,
modeled loosely upon the JDO plugin. Many features of
Hibernate are not supported, but this at least
generates classes with basic properties and
associations (one-to-one, one-to-many, many-to-one, many-to-many). Composite keys are NOT supported, partly because they are not currently supported by the Hibernate XDoclet module.
As described by Max Anderson, here:
http://hibernate.bluemars.net/52.html#16
this approach is somewhat inconvenient and indirect
from the point of view of the full Hibernate toolset.
It would make much more sense from our point of view to generate a .hbm.xml mapping document with middlegen and then delegate to our CodeGenerator tool to generate the Java code. (CodeGenerator supports a larger subset of Hibernate functionality than XDoclet.) However this is not the kind of approach taken by middlegen elsewhere.
Anyway, this plugin is a good start and should already
be useful for some people.
(The plugin was developed against the latest middlegen
CVS and has NOT yet been rigorously tested.)
Gavin
What are you up to on the first day of this new year? I'm reading blogs and we just ordered a pizza. I hope to relax the rest of the day, maybe watch a movie, and order/post some pictures of Abbie.