Search in sources :

Example 1 with DocumentMapperDeleteFrom

use of jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom in project jnosql-diana by eclipse.

the class DefaultDocumentQueryMapperTest method shouldReturnDeleteFrom.

@Test
public void shouldReturnDeleteFrom() {
    DocumentMapperDeleteFrom deleteFrom = queryMapper.deleteFrom(Person.class);
    assertNotNull(deleteFrom);
}
Also used : DocumentMapperDeleteFrom(jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom) Test(org.junit.jupiter.api.Test)

Example 2 with DocumentMapperDeleteFrom

use of jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom in project jnosql-diana by eclipse.

the class DefaultDocumentMapperDeleteBuilderTest method shouldReturnDeleteFrom.

@Test
public void shouldReturnDeleteFrom() {
    DocumentMapperDeleteFrom documentFrom = mapperBuilder.deleteFrom(Person.class);
    DocumentDeleteQuery query = documentFrom.build();
    DocumentDeleteQuery queryExpected = delete().from("Person").build();
    assertEquals(queryExpected, query);
}
Also used : DocumentMapperDeleteFrom(jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom) DocumentDeleteQuery(jakarta.nosql.document.DocumentDeleteQuery) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentMapperDeleteFrom (jakarta.nosql.mapping.document.DocumentQueryMapper.DocumentMapperDeleteFrom)2 Test (org.junit.jupiter.api.Test)2 DocumentDeleteQuery (jakarta.nosql.document.DocumentDeleteQuery)1