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