LazyInitializationException « JPA « JSF Q&A





1. JSF + Hyperjaxb3 + Hibernate LazyInitializationException accross requests    stackoverflow.com

I have JSF application with trinidad components and JAXB/JPA entity beans generated by Hyperjaxb3. In the UI I use Trinidad combo box component that has JPA object as values. The scenario is:

  1. User ...

2. Using JPA entities in JSF. Which is the best strategy to prevent LazyInitializationException?    stackoverflow.com

Would like to hear experts on best practice of editing JPA entites from JSF UI. So, a couple of words about the problem. Imagine I have the persisted object MyEntity and I fetch ...