2021-09-24 11:29:50 +12:00
2021-09-09 13:10:13 +12:00
2015-07-30 04:53:25 +12:00
2021-09-24 11:29:50 +12:00
2018-02-03 00:14:00 +13:00

ebean-spring-txn

Integration with Spring managed transactions.

This project provides an Ebean ExternalTransactionManager specifically to integrate with Springs JDBC Transaction manager.

To use

ServerConfig serverConfig = new ServerConfig();

// set SpringJdbcTransactionManager ... as the external transaction manager
serverConfig.setExternalTransactionManager(new SpringJdbcTransactionManager());

...
EbeanServer server = EbeanServerFactory.create(serverConfig);

Notes

You can use Ebean in Spring/Spring Boot without this and that case Ebean manages the Transactions itself. With Ebean managing the transactions there are some benefits with more control over JDBC batch, getGeneratedKeys and a simpler abstraction (as Spring transactions is designed to manage multiple resources such as JDBC Transactions and JPA EntityManager and Ebean only needs to manage JDBC Transactions).

Languages
Java 93.2%
PLpgSQL 3%
TSQL 2.8%
SQLPL 0.7%
Kotlin 0.1%