1. Optimizing fetching with Hibernate - How do I get my ID? coderanch.comHi, One topic of Hibernate is to minimize the database hits when working with Hibernate and a domain model (POJOs). Hence Hibernate uses proxies based on the Hibenate Mappings instead of the real entity. Look the next example from the book Java Persistence with Hibernate p.565: Item item = (Item) session.load(Item.class, new Long(123)); User user = (User) session.load(User.class, new Long(1234)); Bid ... |
2. Collection of a collection fetch optimization forum.hibernate.orgHey, I know this issue has already been discussed several times. I am looking for an optimal way to solve the problem. I have 3 tables with relations like this : A1--*B1--*C I need to just fetch all items from A with all related items from B with all related items from C. I already know that this is not possible ... |