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

Row Data is not mapping to the bean. #48

Open
smrutiranjanbehera opened this issue Oct 14, 2014 · 0 comments
Open

Row Data is not mapping to the bean. #48

smrutiranjanbehera opened this issue Oct 14, 2014 · 0 comments

Comments

@smrutiranjanbehera
Copy link

I was trying to read the csv and try to map the column to the java POJO's but Its not mapping the. I am using csveed-0.4.1 version.

Bean Class

public class ProductSpecificationBean
{
private String tpnb;

public String getTpnb()
{
    return tpnb;
}

public void setTpnb(String tpnb)
{
this.tpnb = tpnb;
}
}

csvFile Data

tpnb,event_name
254043,abcdef

Mapper Class

CsvClient csvClient = new CsvClientImpl(reader1, new BeanInstructionsImpl(
ProductSpecificationBean.class)).setMapper(ColumnNameMapper.class).mapColumnNameToProperty("tpnb", "tpnb");

OUT.info("ROW::::" + csvClient.readRow());
OUT.info("BEAN: "+csvClient.readBean());

MyResult

INFO - ROW::::org.csveed.row.RowImpl@5a2470ee
INFO - BEAN: null

Please help me to get resolve this issue as soon as possible.

hazendaz added a commit that referenced this issue Sep 8, 2023
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

1 participant