Skip to content

Commit fab7b91

Browse files
committed
Requery changes
- Support requery-kotlin fix #931 - requery 1.4.0 fix #933
1 parent f3acda9 commit fab7b91

File tree

6 files changed

+476
-314
lines changed

6 files changed

+476
-314
lines changed

doc/doc/requery/requery.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,24 @@ public class PersonDAO {
111111

112112
Please note we don't inject a `raw` `EntityStore`. Instead we ask for a `Person` `EntityStore`. You can safely inject a `EntityStore` per each of your domain objects.
113113
114-
## async and reactive idioms
114+
## kotlin, async and reactive idioms
115115
116-
Rxjava:
116+
### Kotlin
117+
118+
Add the [kotlin dependency](https://mvnrepository.com/artifact/io.requery/requery-kotlin) to your project, then use it:
119+
120+
```java
121+
{
122+
use(Requery.kotlin(Models.DEFAULT));
123+
124+
get("/", () -> {
125+
KotlinEntityDataStore<Model> store = require(KotlinEntityDataStore.class);
126+
// work with reactive store
127+
});
128+
}
129+
```
130+
131+
### Rxjava
117132
118133
```java
119134
{
@@ -127,7 +142,7 @@ Rxjava:
127142
}
128143
```
129144
130-
Reactor:
145+
### Reactor
131146
132147
```java
133148
{
@@ -141,7 +156,7 @@ Reactor:
141156
}
142157
```
143158
144-
Java 8:
159+
### Java 8
145160
146161
```java
147162
{

modules/coverage-report/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,12 @@
580580
<version>${project.version}</version>
581581
</dependency>
582582

583+
<dependency>
584+
<groupId>io.requery</groupId>
585+
<artifactId>requery-kotlin</artifactId>
586+
<version>${requery.version}</version>
587+
</dependency>
588+
583589
<dependency>
584590
<groupId>org.jooby</groupId>
585591
<artifactId>jooby-rocker</artifactId>

modules/jooby-requery/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<artifactId>requery</artifactId>
2323
</dependency>
2424

25+
<dependency>
26+
<groupId>io.requery</groupId>
27+
<artifactId>requery-kotlin</artifactId>
28+
<optional>true</optional>
29+
</dependency>
30+
2531
<dependency>
2632
<groupId>org.slf4j</groupId>
2733
<artifactId>jul-to-slf4j</artifactId>
@@ -82,4 +88,4 @@
8288
</dependency>
8389

8490
</dependencies>
85-
</project>
91+
</project>

0 commit comments

Comments
 (0)