You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project is forked from scndry/jackson-dataformat-spreadsheet, which can dump data objects as (.xlsx) format, with Hyperlink links between objects. Structured data types (Class) correspond to a (Sheet), and array and class array types are dumped in a Sheet named “List”. It also supports reading/writing.
Using hyperlinks to describe object relationships Note. Number of hyperlinks is usually limited to 65536.
Usage
publicstaticvoidmain(String[]args){
HyperMappermapper = newHyperMapper();
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
List<Person> people = List.of(); /* collection of pojo */Filefile = newFile("some file");
mapper.writeValue(file, people);
List<person> readDatas = mapper.readValues(file, Person.class);
Asserts.status(Objects.equals(people, readDatas), "supposed to be the same");
}
importjava.io.Serializable;
@JsonClassDescription("name for excel sheet")
@ThisIsACustomAnnotation("name for excel sheet") // supported by using TableNameResolver.classpublicclassPersonimplementsSerializable {
@JsonPropertyDescription("name for excel column")
@ThisIsACustomAnnotation("name for excel column") // supported by using ColumnNameResolver.classprivateLongid;
@JsonIgnore// jackson-annotations are supportedprivateStringremark;
}