You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ setParam(stringId, "test")
275
275
276
276
You may specify a parameter as optional by pre-fixing the database-field name with a question-mark like so:
277
277
278
-
##### Example 2
278
+
##### Example 2 (optional and LIKE)
279
279
280
280
```java
281
281
.getListInterceptor()
@@ -285,7 +285,28 @@ You may specify a parameter as optional by pre-fixing the database-field name wi
285
285
286
286
Where `scanId` is a numeric mandatory parameter and the rest is checked using the `LIKE` operator but since the parameter `sn` is optional, the usages are as well.
287
287
288
+
##### Supported Datatypes
288
289
290
+
```java
291
+
"string"
292
+
"boolean", "bool"
293
+
"integer", "int"
294
+
"long", "lng"
295
+
"float"
296
+
"double", "dbl"
297
+
"datetime"
298
+
```
299
+
300
+
##### Example 3 (enums)
301
+
302
+
```java
303
+
.getListInterceptor()
304
+
.query("endsOn >= :startOn[datetime] AND ?type = :type[~EventType]")
305
+
.build()
306
+
```
307
+
308
+
This will cast the `String` in the parameter `type` to a enumeration `EventType`.
309
+
So this works only if you save the String-representation of an enumeration in the database and not the index.
0 commit comments