I know that there is a way to get .hbm files from .java files. Using the class xdoclet.modules.hibernate.HibernateDocletTask. Can't middlegen do that? I know this class is from xdoclet, but I would like to use only one tool for everything...