avaje-ebeanorm-spring

Support for Spring transactions and IOC setup of Ebean server config

License

License

Categories

Categories

ORM Data Ebean
GroupId

GroupId

org.avaje.ebeanorm
ArtifactId

ArtifactId

avaje-ebeanorm-spring
Last Version

Last Version

7.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

avaje-ebeanorm-spring
Support for Spring transactions and IOC setup of Ebean server config
Project URL

Project URL

http://www.avaje.org
Source Code Management

Source Code Management

https://github.com/ebean-orm/avaje-ebeanorm-spring.git

Download avaje-ebeanorm-spring

How to add to project

<!-- https://jarcasting.com/artifacts/org.avaje.ebeanorm/avaje-ebeanorm-spring/ -->
<dependency>
    <groupId>org.avaje.ebeanorm</groupId>
    <artifactId>avaje-ebeanorm-spring</artifactId>
    <version>7.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.avaje.ebeanorm/avaje-ebeanorm-spring/
implementation 'org.avaje.ebeanorm:avaje-ebeanorm-spring:7.1.1'
// https://jarcasting.com/artifacts/org.avaje.ebeanorm/avaje-ebeanorm-spring/
implementation ("org.avaje.ebeanorm:avaje-ebeanorm-spring:7.1.1")
'org.avaje.ebeanorm:avaje-ebeanorm-spring:jar:7.1.1'
<dependency org="org.avaje.ebeanorm" name="avaje-ebeanorm-spring" rev="7.1.1">
  <artifact name="avaje-ebeanorm-spring" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.avaje.ebeanorm', module='avaje-ebeanorm-spring', version='7.1.1')
)
libraryDependencies += "org.avaje.ebeanorm" % "avaje-ebeanorm-spring" % "7.1.1"
[org.avaje.ebeanorm/avaje-ebeanorm-spring "7.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : jcl-over-slf4j jar [1.7,)

provided (7)

Group / Artifact Type Version
org.avaje.ebeanorm : avaje-ebeanorm jar [6,8)
org.avaje.ebeanorm : avaje-ebeanorm-agent jar [4.5,5)
org.avaje : avaje-agentloader jar 2.1.2
org.springframework : spring-context jar 4.1.7.RELEASE
org.springframework : spring-core jar 4.1.7.RELEASE
org.springframework : spring-aspects jar 4.1.7.RELEASE
org.springframework : spring-jdbc jar 4.1.7.RELEASE

test (2)

Group / Artifact Type Version
org.springframework : spring-test jar 4.1.7.RELEASE
org.avaje.composite : avaje-composite-testing-ebean pom 4.1

Project Modules

There are no modules declared in this project.

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).

org.avaje.ebeanorm

Ebean ORM

Versions

Version
7.1.1
6.1.1
4.5.3
3.3.1
3.2.1
3.1.1