JSF, Beans, XDoclet and Hibernate


Web tier: servlets, JSP, Web frameworks: JSF, Beans, XDoclet and Hibernate

  1. JSF, Beans, XDoclet and Hibernate (1 messages)

    I am new to JSF, and the whole managed bean/backing bean concept. I am used to creating a dto, with XDoclet attributes, and creating my hibernate mappings from my dto/xdoclet. I want to know the best practice to use XDoclet to create Hibernate Mappings within JSF.... How can I reduce my code duplication and maximize my code generation?
  2. JSF needs backing bean to serve UI components. From this perspective, it seems to be similar to Hibernate POJO DTO beans. However JSF beans can also have UI action and listener methods and more UI oriented. The DTO beans can also use some proy behind the scene. In our cases, the JSF beans have methods fromJSF() and toJSF to map between thems. let's look at other guys' suggestions.