[BAEL-16003] renamed artifactId. Removed specified articles from libraries module. Added smooks + google sheets resources into libraries-data-2. Tidied up libraries pom, removing unused dependencies.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.baeldung.opencsv.beans;
|
||||
|
||||
import com.opencsv.bean.CsvBindByName;
|
||||
|
||||
public class NamedColumnBean extends CsvBean {
|
||||
|
||||
@CsvBindByName(column = "name")
|
||||
private String name;
|
||||
|
||||
//Automatically infer column name as Age
|
||||
@CsvBindByName
|
||||
private int age;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public int getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(int age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user