0

ZK: hibernate commit

asked 2006-12-11 11:17:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4053280

By: fredlev

I use Hibernate with the org.zkoss.zkplus.hibernate.HibernateSessionContextListener
described in the small talk.

In a page I make a saveorupdate of an object O.
In the same page (in fact, after a window.createComponent), I want to read the list of O's.
But the O I created is not completely available. Is it possible to commit the saveorupdate before going on?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-12-14 03:13:29 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4059587

By: henrichen

1. The HibernateSessionContextListener simply help copy Hibernate Session from servlet thread to event thread.

2. The OpenSessionInViewListener start and close a Hibernate session per request.
The session-per-request.

3. It is better give some example code or at least pseudo code to describe your case.

/henri

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-12-11 11:17:38 +0800

Seen: 221 times

Last updated: Dec 14 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More