Skip to content

Instantly share code, notes, and snippets.

@xpadro
Created December 4, 2016 19:14
Show Gist options
  • Select an option

  • Save xpadro/cabd64e1a2c876f4075309ef86c7cf3c to your computer and use it in GitHub Desktop.

Select an option

Save xpadro/cabd64e1a2c876f4075309ef86c7cf3c to your computer and use it in GitHub Desktop.
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