aspose file tools*
The moose likes Object Relational Mapping and the fly likes What is meant by saying that Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What is meant by saying that "in the scope of a Session"?" Watch "What is meant by saying that "in the scope of a Session"?" New topic
Author

What is meant by saying that "in the scope of a Session"?

sriram krishna
Greenhorn

Joined: Nov 21, 2011
Posts: 6
Hi,
If someone says that, " . . . an object is in the scope of the Session / associated with Session" in hibernate, what does exactly it mean??
Is it something like, creating an object and use that object between opening and closing the Session, like method scope??
Thank you.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Generally if you use particular session to persist/retrieve/merge an entity it is in the scope of that particular session instance.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is meant by saying that "in the scope of a Session"?
 
Similar Threads
Upload error
ActionContext scope?
useBean + code generation
How to access method of another Bean
What is the purpose of scope attribute?