Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsvWriter not find eligible property #727

Open
cn-src opened this issue Jun 24, 2020 · 1 comment
Open

CsvWriter not find eligible property #727

cn-src opened this issue Jun 24, 2020 · 1 comment

Comments

@cn-src
Copy link

cn-src commented Jun 24, 2020

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants