mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-23 07:51:04 +00:00
239f3a0a5488efddbde9950e0e3609e7d46f3a1a
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] <support@github.com>
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
94%
PLpgSQL
2.7%
TSQL
2.5%
SQLPL
0.6%
Kotlin
0.1%