Below is a URL to a patch representing hbm2jsf in it’s infancy. For the curious, you will need a JSF implementation – I recommend MyFaces 1.0.9 . There is also a URL to a build file that will come in handy.
The generated web application does not make use of the DAOs because I lost a fist fight w/ JBoss/JTA/HAR. It also chokes on non-Integer identifier properties, but it will generate a batch of session scoped biz beans for you to play with. There is also a small fix in the patch for the DAO VTL – the one in HEAD creates a logger w/ ClassName.class when it should use ClassNameHome.class. There is also a hook in the HibernateToolTask and an Hbm2DOAGeneratorTask so that it can be used from an ant script.
From a high level point of view, the following is generated for each class: a Lister, a Lister.jsp, a BackendCrudBean, a BackendCrudBean.jsp, and a Converter. Session scoped Lister beans serve collections (they are currently pretending to be the OR framework as well). Request scoped BackendCrudBeans manage the server side object model and will soon delegate work to DAOs. Converters provide a request-paramater-2-object layer.
http://hbm2jsf.dbyrne.net/build.xml
http://hbm2jsf.dbyrne.net/aug14.txt