Robin has posted 6 posts at DZone. View Full User Profile

Ebean ORM v1.0.0 Released - Adds Declarative @Transactional Support

  • submit to reddit

Ebean v1.0.0 introduces support for declarative transactions via a @Transactional annotation. This means you can add the @Transactional annotation to a method and Ebean enhancement will add the transactional support (transaction begin, commit, rollback, suspend & resume etc).

The transaction progagation types  of REQUIRED, REQUIRES_NEW, MANDATORY etc are supported as well as transaction isolation level and explicit rollback control for specific exception types.

For an introduction on declarative transactions in Ebean go to:

For an general introduction to Ebean go to:

Ebean is a LGPL licensed Java ORM. It uses JPA annotations for mapping (@Entity, @Table, @OneToMany etc) but uses a "sessionless" API (no attached/detached beans with associated merge() flush() etc). It also has "Partial Object" support for any node in the object graph and automatic query tuning via "Autofetch".

 Enjoy, Rob.

Published at DZone with permission of its author, Robin Bygrave.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)