fetch « POJO « JPA Q&A





1. What Query should i use in Hibernate to fetch POJO?    stackoverflow.com

I learnt Hibernate and used it to reduce my Java code to a vast extent and also able to reduce the time spent for DB's. Now what type of query should ...

2. How can I late-fetch child data for a *list* of POJOs?    forum.hibernate.org

I have a list of POJOs which have some uninitialized collection properties (one-to-many). Is there a way to fetch this collection property for each of the POJOs in a single query, without one query per POJO in a loop? pojo1.children pojo2.children pojo3.children pojo4.children ... Actually the problem goes one step further: The direct collection property is actually initialized but the objects ...