result « Load « JPA Q&A





2. Many-to-many relation only loads one result in collection    forum.hibernate.org

@SpaceClass @Entity @Table(name="ROLE") public class Role implements Serializable{ /** * Generated serial version id. */ private static final long serialVersionUID = 1L; @Id @Column(name="ROLE_ID") private String roleId; ...

3. Limit the results of a lazy loaded entity    forum.hibernate.org

I'm new to hibernate, I built my entity mappings through hibernate and seam but the issue is some of my relationships are one to more than 10,000 rows. I want to be able to only get 50 at a time from these tables. Even when I do a join fetch and set max result list its still loading all of the ...

4. Loading Collection results in duplicate SQL selects    forum.hibernate.org

When loading a collection, hibernate issues two identical selects. My mappings are: The many to one mapping: The one to many mapping: Any ideas why two selects identical ...

5. 4 or more many-to-one relationships result in error on load    forum.hibernate.org

Newbie Joined: Mon Jul 26, 2004 2:52 pm Posts: 11 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp We have a scenario where object A is referring to Object B. Object B has 4 many-to-one relationships to other objects. We seem to get array out of bounds error when we try to load A by id. We are able ...

6. sorting results from Load    forum.hibernate.org

7. sorting lazily loaded results.    forum.hibernate.org

I have a table "organization" which has a reference to its self so that we have a parent org/org hierarchy. The problem is that whenever i get the children of a certain organization (say root org), the children are lazy loaded but are returned in a different order each time. Is there a way to get sorted result in a lazy ...

8. Lazy load and then limiting the results    forum.hibernate.org

9. Lazy-load associations but not result of Session.load()    forum.hibernate.org

Objects returned from Session.load() appear to be lazy-loading proxies. This is problematic for me as Hibernate does not even check that the returned object exists (until a property of the object is accessed). Is it possible to disable this behavior at the application level, without also disabling all the collection and association lazy-loading (which is less problematic because failures are less ...





10. Does lazy loading always result in n+1 selects?    forum.hibernate.org

Thanks for that, I had come across the descriptions of different fetch strategies. I was thinking about Open Session In View, which in theory should allow you to define everything as lazy-loaded, but which in practice, you may need to think about whether or not you'd be accessing collections for n entities (rather than 1), or whether your single entity's collections ...

11. Empty Load Result    forum.hibernate.org

I am trying my first Hibernate-based application, and I cannot get a simple load() to return a result. The relevant line is Code: EmployerInfo ei = dao.load(40001); The load() command is not throwing an error -- it just returns null. The logs say Code: DEBUG - SQL ...

12. loading a collection object from result set is taking time    forum.hibernate.org

Hi i am trying to run a hibernate query select outage from OutageT as outage left join fetch outage.tickets left join fetch outage.affectedTns left join fetch outage.products where outage.isCurrent = true and outage.isActive = true and outage.status != 'New' and outage.outageType = 'BSI' which fetches around 15000 records. the sql generated from this query runs fine..within few seconds. ...