@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.public abstract org.hibernate.CacheMode cacheMode
CacheMode
for the session.CacheMode
,
Session.setCacheMode(CacheMode)
public abstract org.hibernate.FlushMode flushMode
FlushMode
for the session.FlushMode
,
Session.setFlushMode(org.hibernate.FlushMode)
Copyright © 2014. All rights reserved.