Snippets tagged “join-fetch”
3 snippets use this tag.
- Difference between FetchType LAZY and EAGER in Java Persistence API?Java
In the Java Persistence API (JPA), the FetchType enum is used to specify the strategy for fetching data from the database.
- Hibernate throws MultipleBagFetchException - cannot simultaneously fetch multiple bagsJava
If you are using Hibernate and you see the error "MultipleBagFetchException: cannot simultaneously fetch multiple bags", it means that you are trying to fetch multiple collections of an entity using a single Hibernate query.
- How to fix org.hibernate.LazyInitializationException - could not initialize proxy - no SessionJava
The LazyInitializationException in Hibernate is thrown when an object that has been loaded with a "lazy" fetch type is accessed outside of a valid session.