architecture « JPA « JSF Q&A

1. Java EE application database architecture

I'm developing java EE database application(JSF) where I fill drop down menus from database. I looked for some tutorials and I find that they used the session bean to initialize these ...

2. Passing Entity object[s] between tiers?

Please share your view on this kind of thing i'm currently testing out :

  1. Have an JPA entity inside my JSF managed bean
  2. Bind the entity's properties to the JSF form elements like ...

3. JPA Entities and/vs DTOs

What is the general idea to help deciding when to use DTO and when to use Entity in these cases ?

  1. UI / server side java calling the services. Should it get ...