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()
Transaction semantics are not affected.
void end()
Transaction semantics are not affected.
Copyright © 2006–2018 Google, Inc.. All rights reserved.