use of org.jnosql.artemis.model.Address in project jnosql-artemis by eclipse.
the class DefaultDocumentMapperDeleteBuilderTest method shouldQueryBySubEntity.
@Test
public void shouldQueryBySubEntity() {
DocumentDeleteQuery query = mapperBuilder.deleteFrom(Address.class).where("zipcode.zip").eq("01312321").build();
DocumentDeleteQuery queryExpected = delete().from("Address").where("zip").eq("01312321").build();
assertEquals(queryExpected, query);
}
use of org.jnosql.artemis.model.Address in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldQueryBySubEntity.
@Test
public void shouldQueryBySubEntity() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Address.class).where("zipcode.zip").eq("01312321").build();
ColumnDeleteQuery queryExpected = delete().from("Address").where("zip").eq("01312321").build();
assertEquals(queryExpected, query);
}
use of org.jnosql.artemis.model.Address in project jnosql-artemis by eclipse.
the class DefaultColumnMapperSelectBuilderTest method shouldQueryBySubEntity.
@Test
public void shouldQueryBySubEntity() {
ColumnQuery query = mapperBuilder.selectFrom(Address.class).where("zipcode.zip").eq("01312321").build();
ColumnQuery queryExpected = select().from("Address").where("zip").eq("01312321").build();
assertEquals(queryExpected, query);
}
Aggregations