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?
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.