Annotation Type UnitOfWork

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element 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.
      String value
      The name of a hibernate bundle (session factory) that specifies a datasource against which a transaction will be opened.
    • Element Detail

      • readOnly

        boolean readOnly
        If true, the Hibernate session will default to loading read-only entities.
        See Also:
        Session.setDefaultReadOnly(boolean)
        Default:
        false
      • transactional

        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.
        Default:
        true
      • cacheMode

        org.hibernate.CacheMode cacheMode
        The CacheMode for the session.
        See Also:
        CacheMode, Session.setCacheMode(CacheMode)
        Default:
        org.hibernate.CacheMode.NORMAL
      • flushMode

        org.hibernate.FlushMode flushMode
        The FlushMode for the session.
        See Also:
        FlushMode, Session.setFlushMode(org.hibernate.FlushMode)
        Default:
        org.hibernate.FlushMode.AUTO
      • value

        String value
        The name of a hibernate bundle (session factory) that specifies a datasource against which a transaction will be opened.
        Default:
        "hibernate"