public interface UnitOfWork
Session
, EntityManager
or ObjectContainer
respectively.
The Unit of Work referred to by UnitOfWork will always be local to the calling thread. Be careful to end() in a finally block. Neither JPA, nor Hibernate supports threadsafe sessions (reasoning behind thread-locality of Unit of Work semantics).
void begin()
void end()
Transaction semantics are not affected.
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.