In my last two posts (Hibernate + Middlegen Roundtrip Development applied and Hibernate: dealing with lazy loading inevitable), I explained how to construct a J2EE application bottom-up using Hibernate and Middlegen.
It turns out that you can and actually should optimize the generated
.java files by Middlegen. I found this information in Hibernate / Middlegen – Inheritance and Many To Many v1.0, which offers an outstanding explanation and example.
Although I did not read the preceding Hibernate / Spring / Middlegen / XDoclet Tutorial v1.5 yet, it definitely seems worth checking out as well.