Combining Hibernate with XDoclet makes it possible to start from Java code when building an application. Using XDoclet markup tags (similar to the tags used by
javadoc), you can generate the
*.hbm.xml files required by Hibernate directly from your Java source files.
XDoclet, available from http://xdoclet.sourceforge.net/, is an open-source framework for annotating Java source files with special comments, which are then used to construct configuration files used by a variety of different environments.
Many developers first encounter XDoclet when working with EJB 2.X as a tool to help manage the complexity of EJB 2.X development. XDoclet-style annotations have become so popular that support for similar annotations (as ...