Last active
August 30, 2017 09:51
-
-
Save jklingsporn/93748f0dca09421051e2e4671a4fa5ea to your computer and use it in GitHub Desktop.
Record to JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeJsonTest { | |
public void getJsonFromRecord(){ | |
SomethingDao somethingDao = new SomethingDao(); | |
//setConfiguration/ setVertx left out | |
CompletableFuture<JsonObject> jsonFuture = somethingDao.executeAsync(dslContext -> dslContext | |
.selectFrom(somethingDao.getTable()) | |
.where(Tables.SOMETHING.SOMEID.eq(1)) | |
.fetchOne()) | |
.thenApply(ISomething::toJson) | |
; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment