use of org.eclipse.jnosql.mapping.document.entities.Citizen in project jnosql-diana by eclipse.
the class DefaultDocumentEntityConverterTest method shouldCreateLazilyEntity.
@Test
public void shouldCreateLazilyEntity() {
DocumentEntity entity = DocumentEntity.of("Citizen");
entity.add("id", "10");
entity.add("name", "Salvador");
Citizen citizen = converter.toEntity(entity);
Assertions.assertNotNull(citizen);
assertNull(citizen.getCity());
}
Aggregations