public final class HibernateUnitOfWorkFilter extends Object implements javax.servlet.Filter
Filter
that wraps entire web requests in UnitOfWork
instances using the configured HibernateRepository
instances.
This servlet filter is an implementation of the session-per-request pattern. By default, you also get one transaction per request, but nobody hinders
you from doing more fine grained transaction management if you need it.Constructor and Description |
---|
HibernateUnitOfWorkFilter() |
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig cfg) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
Copyright © 2012-2013. All Rights Reserved.