@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface UnitOfWork
UnitOfWorkRequestDispatcher
Modifier and Type | Optional Element and Description |
---|---|
org.hibernate.CacheMode |
cacheMode
The
CacheMode for the session. |
org.hibernate.FlushMode |
flushMode
The
FlushMode for the session. |
boolean |
readOnly
If
true , the Hibernate session will default to loading read-only entities. |
boolean |
transactional
If
true , a transaction will be automatically started before the resource method is
invoked, committed if the method returned, and rolled back if an exception was thrown. |
public abstract boolean readOnly
true
, the Hibernate session will default to loading read-only entities.Session.setDefaultReadOnly(boolean)
public abstract boolean transactional
true
, a transaction will be automatically started before the resource method is
invoked, committed if the method returned, and rolled back if an exception was thrown.Copyright © 2015. All rights reserved.