Created
December 4, 2016 19:14
-
-
Save xpadro/cabd64e1a2c876f4075309ef86c7cf3c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private MongoDbOutboundGatewaySpec outboundGateway(MongoDbFactory mongo) { | |
| return MongoDb.outboundGateway(mongo) | |
| .queryExpression("payload.data") | |
| .collectionNameExpression(new LiteralExpression("person")) | |
| .expectSingleResult(true) | |
| .entityClass(Person.class); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment