use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldUseAttibuteConverter.
@Test
public void shouldUseAttibuteConverter() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Worker.class).where("salary").eq(new Money("USD", BigDecimal.TEN)).build();
ColumnDeleteQuery queryExpected = delete().from("Worker").where("money").eq("USD 10").build();
assertEquals(queryExpected, query);
}
use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldReturnDeleteFrom.
@Test
public void shouldReturnDeleteFrom() {
ColumnDeleteFrom columnFrom = mapperBuilder.deleteFrom(Person.class);
ColumnDeleteQuery query = columnFrom.build();
ColumnDeleteQuery queryExpected = ColumnQueryBuilder.delete().from("Person").build();
assertEquals(queryExpected, query);
}
Aggregations