arnaudroger / SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
http://simpleflatmapper.org
MIT License
435 stars 76 forks source link

CsvWriter not find eligible property #727

Open cn-src opened 4 years ago

cn-src commented 4 years ago

simpleflatmapper.version:8.2.3

import lombok.Data;
import org.simpleflatmapper.map.annotation.Column;

@Data
public class GenGrid {
    @Column("gird_x")
    private int gridX;
    @Column("gird_y")
    private int gridY;
}
 CsvWriter<GenGrid> writer = CsvWriter.from(GenGrid.class)
                    .to(appendable);
            GenGrid value = new GenGrid();
            writer.append(value);

throw:

org.simpleflatmapper.map.MapperBuildingException: Could not find eligible property for 'grid_y'

arnaudroger commented 3 years ago

sorry been late on that, is there a setter or a constructor that set gridY? I assume lombok is doing that? could you send the .class generated for GenGrid? also there no need for the @Column annotation