资 源 简 介
Easy-OFM
Object File mapping framework to map common file types (ex. Excel, CSV) to java objects without interacting directly with low level mapping APIs (ex. apache POI)
Sample code for mapping
test.xlsx
1111 | Amila Domingo | 11-Dec-1970
Student.java
Notice the use of annotations `Column` and `Mapped`
```
import org.easyframework.frm.excel.annotation.Column;
import org.easyframework.frm.excel.annotation.Mapped;
@Mapped
public class Student {
@Column(order = 1)
private int id;
@Column(order = 0)
private String name;
@Column(order = 2)
private Date birthDate;
public int getId() {
return id;
}
public String getName() {
return name;
}
public Date getBirthDate() {
return birthDate;
}
}
```
ExcelTemplateTest.java
Notice the use of `ExcelTemplate`
```
import java.io.File;
import java.util.List;