• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session.close() in hibernate

 
balakumar sg
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After close the session (session.close()) in hibernate, can we pass the parent -child data to different data?

Can we get the child bean from parent bean in JSP, after execute the session.close()?

pls advice me.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"balakumar balakumar" please check your private messages.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the encapsulating class has been fully initialized, meaning all of its encapsulated classes have been initialized as well, after the Hibernate Session is closed, the JavaBean is like any other JavaBean, and you can access its properties. However, this is known as a detached instance, and as you access the various properties, they are only in sync with the currently running Java Virtual Machine, not the actual data that is stored in the database or Hibernate Session cache.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic