Announcement Announcement Module
Collapse
No announcement yet.
Hibernate Transaction Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate Transaction

    Hello experts

    I have a question about transaction management . I am using HIbernateTemplate to access Hibernate . I do understand that If I am using cache , then all the objects are stored in cache and they will be persisted when the session is flushed. When I am using transaction manager , the sessil flush will be done during commit.
    My question is how do I get control to this commit process. I want to remove some objects from the Hibernate cache before the session is flushed.

    Thanks
    Sunil

  • #2
    Hibernate contains 2 caches - first level (session cache) and second level (external to Hibernate). For the first level use Session.evict for the second use SessionFactory methods.

    Comment

    Working...
    X