Created
August 7, 2013 07:30
-
-
Save odrotbohm/6171980 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
@Test | |
public void foo() { | |
TypeBasedAggregationOperationContext context = new TypeBasedAggregationOperationContext(Foo.class, | |
new MongoMappingContext(), new QueryMapper(converter)); | |
Aggregation aggregation = newAggregation(Foo.class, group("bar.name")); | |
aggregation.toDbObject("foo", context); | |
} | |
static class Foo { | |
Bar bar; | |
} | |
static class Bar { | |
String name; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment