Open avatar42 opened 3 years ago
In 0.6.1 doing a complete rewrite of this. First adding tabName.colum,type to override detection and force a column to be a Java type as for "Watchlist" sheet: Roamio_Todo.G.type=java.lang.String shows.Y.type=java.util.Date
Also setting blank cells and cells with errors to null values with if (StringUtils.isBlank(s)) cells[i] = null; else if (s.startsWith("#VALUE!")) cells[i] = null; else if (s.startsWith("#NUM!")) cells[i] = null; else if (s.startsWith("#REF!")) cells[i] = null; else if (s.startsWith("#N/A")) cells[i] = null; else if (s.equals("#N/A")) cells[i] = null;
as of 0.6.2 is a column has no data for any record the generated test for that column will fail with no records found. Either exclude the column or comment out the test.
Add better handling of dates in 0.6.2
For instance a - in a date field will go into a SQLite DB but then generate an exception when Hibernate tries to read it from the DB later.