Skip to content

Commit 88cf397

Browse files
Update README.md
1 parent bb618a2 commit 88cf397

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@
22
![Travis (.org)](https://img.shields.io/travis/isopropylcyanide/dropwizard-jdbi-unitofwork)
33
![Codecov](https://img.shields.io/codecov/c/github/isopropylcyanide/dropwizard-jdbi-unitofwork?color=green)
44
![GitHub](https://img.shields.io/github/license/isopropylcyanide/dropwizard-jdbi-unitofwork?color=blue)
5-
5+
![Maven Central](https://img.shields.io/maven-central/v/com.github.isopropylcyanide/dropwizard-jdbi-unitofwork)
66

77
Provides `@JdbiUnitOfWork` annotation for a Jdbi backed Dropwizard backend for wrapping resource methods in a transaction context
88

99
- [`Dropwizard`](https://github.com/dropwizard/dropwizard) provides a very slick [`@UnitOfWork`](https://www.dropwizard.io/en/latest/manual/hibernate.html) annotation that wraps a transaction context around resource methods annotated with this annotation. This is very useful for wrapping multiple calls in a single database transaction all of which will succeed or roll back atomically.
1010

1111
- However this support is only available for `Hibernate`. For all the goodness [`Jdbi`](http://jdbi.org/jdbi2/) brings, we had to bring the transactionality on our own. This module provides support for `JdbiUnitOfWork` with a `Jdbi` backend
1212

13+
## Maven Artifacts
14+
15+
This project is available on Maven Central. To add it to your project you can add the following dependency to your
16+
`pom.xml`:
17+
18+
<dependency>
19+
<groupId>com.github.isopropylcyanide</groupId>
20+
<artifactId>dropwizard-jdbi-unitofwork</artifactId>
21+
<version>1.0</version>
22+
</dependency>
1323

1424
## Features
1525

@@ -22,13 +32,7 @@ Provides `@JdbiUnitOfWork` annotation for a Jdbi backed Dropwizard backend for w
2232
## Usage
2333

2434
- Add the dependency to your `pom.xml`
25-
```xml
26-
<dependency>
27-
<groupId>com.github.isopropylcyanide</groupId>
28-
<artifactId>dropwizard-jdbi-unitofwork</artifactId>
29-
<version>${dropwizard.jdbi.unitofwork.version}</version>
30-
</dependency>
31-
```
35+
3236
- Decide which implementation of `JdbiHandleManager` is suitable for your use case.
3337

3438
```java

0 commit comments

Comments
 (0)