Ticket #280 (closed Enhancement: fixed)

Opened 8 years ago

Last modified 5 years ago

Core: request-wide transactions by annotation

Reported by: jri Owned by: jri
Priority: Minor Milestone:
Component: DeepaMehta Standard Distribution Version: 4.0.11
Keywords: Cc: dgf
Complexity: 5 Area: Application Framework / API
Module: deepamehta-core

Description

Developers should be able to create transactions by method annotation.
The annotation could be named e.g. @Transaction or @Transactional

Advantages would be

a) no nested transactions would be created (currently all core service methods create their own transaction)
b) plugin developers would be freed from manually creating transactions for their resource/service methods, e.g.:


    @GET
    @Path("/search")
    @Transaction
    public Topic searchTopics(...

Thanks, dgf, for suggesting that approach.

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Jörg Richter

Core: no transactions for read operations (#406).

Close ticket 406.

Revising the transaction creation approach remains an issue, see #280.

comment:3 Changed 8 years ago by jri

  • Milestone changed from Release 4.1 to Release 4.2

comment:4 Changed 7 years ago by jri

  • Milestone Release 4.2 deleted

comment:5 Changed 5 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed

A @Transactional annotation is finally realized in DM 4.4 (see #698)

Note: See TracTickets for help on using tickets.