Skip to content

Commit 234651a

Browse files
committed
Ensure compatibility with updated Spring-data
Now support Spring-Boot 1.5 and updated AWS SDK to the latest version
1 parent 35d49d2 commit 234651a

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

README.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,18 @@ The major and minor number of this library refers to the compatible Spring frame
2424
API changes will follow SEMVER and loosly the Spring Framework releases.
2525

2626
| `spring-data-dynamodb` version | Spring Framework compatibility | Spring Data compatibility |
27-
| ------------- | ------------- | -------- |
28-
| 1.0.x | >= 3.1 && < 4.2 | |
29-
| 4.2.x | >= 4.2 && < 4.3 | Gosling-SR1|
30-
| 4.3.x | >= 4.3 | Gosling-SR1|
31-
| 4.4.x | >= 4.3 | Hopper-SR2 |
27+
| ------------------------------- | ------------------------------ | ------------------------- |
28+
| 1.0.x | >= 3.1 && < 4.2 | |
29+
| 4.2.x | >= 4.2 && < 4.3 | Gosling-SR1 |
30+
| 4.3.x | >= 4.3 | Gosling-SR1 |
31+
| 4.4.x | >= 4.3 | Hopper-SR2 |
32+
| 4.5.x | >= 4.3 | Ingalls |
3233

3334
`spring-data-dynamodb` depends directly on `spring-data` as also `spring-context`, `spring-data` and `spring-tx`.
3435

3536
`compile` and `runtime` dependencies are kept to a minimum to allow easy integartion, for example into
3637
Spring-Boot projects.
3738

38-
### Workaround for Spring Boot >= 1.5.x w/ Spring Framework Version >= 4.3.6 ###
39-
40-
As with Spring Boot 1.5.x the `Ingalls` releasetrain of Spring Data is used, this leads to startup failures with the current version of this library. A possible workaround is to lock the use Spring Data releasetrain to `Hopper` like this (add to your `pom.xml`):
41-
42-
<dependencyManagement>
43-
<dependencies>
44-
<dependency>
45-
<groupId>org.springframework.data</groupId>
46-
<artifactId>spring-data-releasetrain</artifactId>
47-
<version>Gosling-SR1</version>
48-
<type>pom</type>
49-
<scope>import</scope>
50-
</dependency>
51-
</dependencies>
52-
</dependencyManagement>
53-
5439
## Quick Start ##
5540

5641
Download the JAR though [Maven](http://mvnrepository.com/artifact/com.github.derjust/spring-data-dynamodb):
@@ -59,7 +44,7 @@ Download the JAR though [Maven](http://mvnrepository.com/artifact/com.github.der
5944
<dependency>
6045
<groupId>com.github.derjust</groupId>
6146
<artifactId>spring-data-dynamodb</artifactId>
62-
<version>4.3.1</version>
47+
<version>4.5.0</version>
6348
</dependency>
6449
```
6550

@@ -73,7 +58,7 @@ repositories {
7358
dependencies {
7459
compile group: 'com.github.derjust',
7560
name: 'spring-data-dynamodb',
76-
version: '4.3.1'
61+
version: '4.5.0'
7762
}
7863
```
7964

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.github.derjust</groupId>
55
<artifactId>spring-data-dynamodb</artifactId>
6-
<version>4.4.2-SNAPSHOT</version>
6+
<version>4.5.0-SNAPSHOT</version>
77
<name>Spring Data DynamoDb</name>
88
<description>Spring Data module providing support for DynamoDb repositories.</description>
9-
<url>http://github.com/michaellavelle/spring-data-dynamodb</url>
9+
<url>http://github.com/derjust/spring-data-dynamodb</url>
1010

1111
<licenses>
1212
<license>
@@ -16,10 +16,10 @@
1616
</licenses>
1717

1818
<properties>
19-
<spring.version>4.3.2.RELEASE</spring.version>
20-
<spring-data.version>Hopper-SR2</spring-data.version>
19+
<spring.version>4.3.6.RELEASE</spring.version>
20+
<spring-data.version>Ingalls-RELEASE</spring-data.version>
2121
<hibernate-validator.version>5.2.4.Final</hibernate-validator.version>
22-
<aws-java-sdk.version>1.11.68</aws-java-sdk.version>
22+
<aws-java-sdk.version>1.11.93</aws-java-sdk.version>
2323
<junit.version>4.12</junit.version>
2424
<mockito.version>1.10.19</mockito.version>
2525

src/main/java/org/socialsignin/spring/data/dynamodb/repository/support/DynamoDBRepositoryFactoryBean.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@
3636
* @param <T>
3737
* the type of the repository
3838
*/
39-
public class DynamoDBRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable> extends
40-
RepositoryFactoryBeanSupport<T, S, ID> {
39+
public class DynamoDBRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable>
40+
extends RepositoryFactoryBeanSupport<T, S, ID> {
4141

4242
private DynamoDBMapperConfig dynamoDBMapperConfig;
4343

4444
private AmazonDynamoDB amazonDynamoDB;
4545

4646
private DynamoDBOperations dynamoDBOperations;
4747

48+
public DynamoDBRepositoryFactoryBean(Class<? extends T> repositoryInterface) {
49+
super(repositoryInterface);
50+
}
51+
4852
public void setAmazonDynamoDB(AmazonDynamoDB amazonDynamoDB) {
4953
this.amazonDynamoDB = amazonDynamoDB;
5054
setMappingContext(new DynamoDBMappingContext());

0 commit comments

Comments
 (0)