Annotation Type InTransaction


  • @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    public @interface InTransaction
    Annotation for unit of work and transaction declaration. Code executed under the scope of annotation will share the same transaction (and handle).

    Use on class to mark all methods as transactional.

    Support nesting: nested annotated elements will participate in outer transaction (and so exceptions will rollback entire transaction).

    Since:
    4.12.2016