graph « Load « JPA Q&A





1. What is the best way to load a Hibernate object graph before using it in a UI?    stackoverflow.com

The situation is this:

  • You have a Hibernate context with an object graph that has some lazy loading defined.
  • You want to use the Hibernate objects in your UI as is without having to copy ...

2. hibernate what is the right way to load object graph    stackoverflow.com

suppose I have 3 tables GrandCat, Cat, and Kitt. they have the one to many relation so I have the following classes. all association is lazy loading.

GrandCat{
    int ...

3. lazy loading navigating object graph    forum.hibernate.org

4. The right way to load complex graph of objects    forum.hibernate.org

5. how to load complex object graph in real world    forum.hibernate.org

Author Message angelfox Post subject: how to load complex object graph in real world Posted: Wed Aug 31, 2011 10:00 am Newbie Joined: Thu Jul 28, 2011 3:53 pm Posts: 2 a real production scenario. background: 6 tables: Fund, Account, period, periodweight, holding, position. Fund: The fund information, for example: fund name, total Asset, start time.. etc. Account: each ...

6. Loading of object graphs via many-to-one associations    forum.hibernate.org

Hello, I have a common question regarding the object graph loading. We have a lot of many-to-one associations in our application, so it would be great if hibernate would resolve them by using outer join (we use OracleDialect, so it should be possible), and not by executing extra queries for each association. I've already played with different initialization parameters (e.g. max_fetch_depth) ...

7. How to load all object graph when lazy loding is used    forum.hibernate.org

This is something I have also considered would be useful. Rather than just Hibernate.initialize(...), a method call that could force initialization on an arbitrary number of proerties or property depth. Perhaps something like Hibernate.initialize(Object proxy, int depth), which would initialize all proxies in the obejct or collection, to the specified depth by introspection. Scott

8. how to mininize the object graph that gets loaded.    forum.hibernate.org

hi, i have this table with some many to one relations (see hbm file below). i have cascade=none and outer-join=false on all of them. all of the parent's have lazy=true or proxy=same class name. i have hibernate.max_fetch_depth=0 in my hibernate.properties file. but when i do a: Collection ordered=session.find("select from PoItemOrdered as ordered where ordered.poNew='po3153'"); i get a list of the objects ...

9. Yo! - object graph loading!    forum.hibernate.org

Hi, Ive read a couple of posts but Im still confused. If I have tables A->B->C (A has a set of Bs, B has a set of Cs). With UseOuterJoin=false and lazyLoading=true. Ive tried the query: "from A as a left join fetch a.B as b left join fetch b.C" It doesnt throw an exception but returns A's with no B's ...





10. Loading subsets of the full object graph    forum.hibernate.org

Almost there to getting an initial conversion of our persistence infrastructore over to Hibernate... But, I'm totally stuck now. I'd just assumed this was possible, and now that I'm to the point I can actually try to do it, I cannot seems to figure it out. It's a problem about loading a subset graph instead of the full object graph. I ...

11. Is there an easier way to load graphs than my example?    forum.hibernate.org

Hi guys, I'm wondering if there is a cleaner way to initialize object graphs. This is what I'm doing now: Code: UserRole userRole = (UserRole) reflectable; if( loadPrivileges ) { ...

12. Problems loading object graph    forum.hibernate.org

Hi, We are using Hiberant 2.1.6 on Redhat linux running JDK1.5.0 and our DB is MaxDB. We have large object graphs that we load (sometimes up to 5 table joins). We are having the problem where the objects lower down in the graph are not fully created before being set in an object higher up in the graph. I will give ...

13. graph loading    forum.hibernate.org

Hi, I've read a couple of posts but I'm still confused. I have 4 tables A, B, C and D (A has a set of Bs, B has a set of Cs and C has a set of Ds). All collections are bidirectionnal and marked as lazy="true". I'm wondering how to get A (with B and C and D). My idea ...

14. Loading multiple collections on an object graph    forum.hibernate.org

Author Message yev Post subject: Loading multiple collections on an object graph Posted: Sat Jun 18, 2005 6:08 pm Beginner Joined: Mon Jan 24, 2005 6:42 pm Posts: 26 Hello, This subject has been beat to death on many threads so here is one more. I have been experimenting with loading an object graph having multiple collections on it. ...

15. Efficient Loading of Large Object Graph    forum.hibernate.org

Hibernate version: 2.1.6 Name and version of the database you are using: Microsoft SQL Server 2000 I have the following object graph: Class A contains a one-to-many relationship with class B (with a size ranging from 5 to 5000 objects) Class B contains a one-to-many relationship with class C (with a size of around 7 objects) Class C contains a one-to-many ...

16. How to load full object graph in HQL?    forum.hibernate.org

I have a deep object nesting of parent/child relations. When I load the top level parent object using ICritiera, hibernate issues multiple queries to load the full object graph. It cant be done with joins since there are multiple child collections in most parents. My question is, what is the best way to do this using HQL? I then also need ...





17. parent-child graph loading optimization    forum.hibernate.org

Hi instead of 1. select * from parent join child join sub_child Is it possible to optimize a parent-child graph loading this way ? 1. select * from parent 2. select * from child 3. select * from sub_child Even if we get 3 queries, it reduces the size of ResultSet(s). Thanks for your time Vitaliy

18. How to trigger association loading without a connected graph    forum.hibernate.org

Hello, I understand the RTFM, and I'm about half-way through the 800 page tome, but I haven't yet seen an answer to this, and I'm hoping it is a simple question, and someone can provide a simple answer or point me to the right place to find it. Here's a simple object model: Code: public class ThingA { ...

19. Lazy loading - tracking the object graph    forum.hibernate.org

Hi, I've got a fairly complex schema with dozens of buisiness objects with "interesting" interactions between them. About half the properties are LAZY fetched, with the rest being EAGER. I am suffering from various performance issues where hibernate pulls in a huge object tree, but I'm struggling to figure out what is pulling what in. I have had a brief look ...