use of dev.morphia.test.query.TestLegacyQuery.ContainsPic in project morphia by mongodb.
the class TestQueriesOnReferences method testFindByReference.
@Test
public void testFindByReference() {
final ContainsPic cpk = new ContainsPic();
final Pic p = new Pic();
cpk.setPic(p);
getDs().save(List.of(p, cpk));
assertNotNull(getDs().find(ContainsPic.class).filter(Filters.eq("pic", p)).first());
}
Aggregations