Hibernate
From: Greg Ofiesh (gregofiesh_at_yahoo.com)
Date: 08/24/04
- Next message: Vladimir: "Re: How do you make decisions that optimize software quality?"
- Previous message: Greg Ofiesh: "W4T from Innoopract"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Aug 2004 18:39:48 -0700
Hello all,
I am using Hibernate, and I am looking for more detailed information
on how Hibernate does certain things under the hood.
For example, if an entity A has a collection C of entity B, we can say
C uses a lazy fetch and only populates with B objects upon demand. The
Hibernate documentation says that C will get the Bs from the database
upon first access to a C method. That is fine. But Hibernate's
documentation also says that a session object must be open or an
exception will occur (of course).
So one of the things I am trying to determine is what is a good
practice for lazy fetch collections where a session object used to get
A may be closed before access to C occurs.
Also, more of the point, how have people managed session objects
successfully beyond the life of a single connection? I have some
ideas, and they are a little complex, but I thought I would ask around
for other ideas.
Any experiences or discussion is welcomed. Thanks.
Greg Ofiesh
- Next message: Vladimir: "Re: How do you make decisions that optimize software quality?"
- Previous message: Greg Ofiesh: "W4T from Innoopract"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]