Search in sources :

Example 1 with Citizen

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());
}
Also used : ColumnEntity(jakarta.nosql.column.ColumnEntity) Citizen(org.eclipse.jnosql.mapping.column.entities.Citizen) Test(org.junit.jupiter.api.Test)

Aggregations

ColumnEntity (jakarta.nosql.column.ColumnEntity)1 Citizen (org.eclipse.jnosql.mapping.column.entities.Citizen)1 Test (org.junit.jupiter.api.Test)1