FWIW, the first approach (setting the meta (at) extend in your (dot) hbm.xml file) also works with the hibernate3 code generator. I am using these: hibernate3.jar hibernate-tools-3.1.0.b2.jar