Skip to content

Commit 7acba5a

Browse files
committed
Merge pull request #13 from zalando/java8_fix
Revert back bumping of reflections version for backward compatibility.
2 parents f323036 + 6f50273 commit 7acba5a

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ Library to make PostgreSQL stored procedures(SProcs) available through simple Ja
99

1010
Supports horizontal database sharding (partition/access logic lies within application), easy use of pg_advisory_lock through annotations to ensure single Java node execution, configurable statement timeouts per stored procedure, and PostgreSQL types including enums and hstore.
1111

12+
Usage
13+
------------
14+
To use SProcWrapper, add the following lines to your pom.xml:
15+
16+
```xml
17+
<dependency>
18+
<groupId>de.zalando</groupId>
19+
<artifactId>zalando-sprocwrapper</artifactId>
20+
<version>1.2.4</version>
21+
</dependency>
22+
```
23+
1224
Type Mapping
1325
------------
1426

pom.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>de.zalando</groupId>
66
<artifactId>zalando-sprocwrapper</artifactId>
7-
<version>1.2.3</version>
7+
<version>1.2.4</version>
88
<packaging>jar</packaging>
99
<name>Stored Procedure Wrapper</name>
1010
<description>Library to make PostgreSQL stored procedures available through simple Java "*SProcService" interfaces including automatic object serialization and deserialization (using typemapper and convention-over-configuration). Supports sharding, advisory locking, statement timeouts and PostgreSQL types such as enums and hstore.</description>
@@ -211,7 +211,18 @@
211211
<dependency>
212212
<groupId>org.reflections</groupId>
213213
<artifactId>reflections</artifactId>
214-
<version>0.9.9</version>
214+
<version>0.9.8</version>
215+
<exclusions>
216+
<exclusion>
217+
<groupId>javassist</groupId>
218+
<artifactId>javassist</artifactId>
219+
</exclusion>
220+
</exclusions>
221+
</dependency>
222+
<dependency>
223+
<groupId>org.javassist</groupId>
224+
<artifactId>javassist</artifactId>
225+
<version>3.18.2-GA</version>
215226
</dependency>
216227
<dependency>
217228
<groupId>com.google.guava</groupId>

src/main/java/de/zalando/sprocwrapper/globalobjecttransformer/GlobalObjectTransformerLoader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import org.reflections.Reflections;
88

9-
import org.reflections.scanners.SubTypesScanner;
109
import org.reflections.scanners.TypeAnnotationsScanner;
1110

1211
import org.reflections.util.ClasspathHelper;
@@ -103,7 +102,7 @@ public boolean apply(final String input) {
103102
final Reflections reflections = new Reflections(new ConfigurationBuilder().filterInputsBy(
104103
new FilterBuilder.Include(FilterBuilder.prefix(myNameSpaceToScan))).setUrls(
105104
ClasspathHelper.forPackage(myNameSpaceToScan)).setScanners(new TypeAnnotationsScanner()
106-
.filterResultsBy(filter), new SubTypesScanner()));
105+
.filterResultsBy(filter)));
107106
final Set<Class<?>> objectMapper = reflections.getTypesAnnotatedWith(GlobalObjectMapper.class);
108107

109108
return objectMapper;

0 commit comments

Comments
 (0)