From Documentation

Jump to: navigation, search

To make ZK works with Hibernate smoothly, you have to use the following utilities.

  1. Create zk.xml under $myApp/WEB-INF/(if not exists)
  2. Copy the following lines into your zk.xml
 <!-- Hibernate SessionFactory lifecycle -->
 <description>Hibernate SessionFactory lifecycle</description>

 <!-- Hibernate OpenSessionInView Pattern -->
 <description>Hibernate Open Session In View life-cycle</description>

 <!-- Hibernate thread session context handler -->
 <description>Hibernate thread session context handler</description>

$myApp represents the name of your web application. ex. event

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.